/* SOMOS hero: a still photo with the radar on top. Variables --mx/--my (pointer −1..1), --sy (px scrolled),
   --sp (0..1) are set by theme.js; only the radar follows the pointer, and only the text reacts to scrolling. */
.somos-hero {
	--mx: 0;
	--my: 0;
	--sy: 0;
	--sp: 0;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	isolation: isolate;
	overflow: clip;
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: clamp(640px, calc(100svh - var(--somos-header-h, 5.25rem)), 960px);
	background: #0A0B0B var(--lqip) center / cover no-repeat;
	color: #fff;
}

.somos-hero__scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	perspective: 1400px;
	transform-style: preserve-3d;
}

.somos-hero__layer {
	position: absolute;
	inset: -6%;
}

/* The photo, haze and grid stay still. The radar alone follows the pointer (desktop only; theme.js
   ignores touch), at its usual size (2.5% larger than its layer). */
.somos-hero__layer--hud {
	will-change: transform;
	transform: translate3d(calc(var(--mx) * 24px), calc(var(--my) * 15px), 0) scale(1.0255);
}

.somos-hero__layer picture,
.somos-hero__layer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 64% 42%;
}

.somos-hero__layer--sky img {
	filter: saturate(0.9) contrast(1.05);
}

.somos-hero__layer--land {
	-webkit-mask-image: linear-gradient(to top, #000 44%, transparent 68%);
	mask-image: linear-gradient(to top, #000 44%, transparent 68%);
}

.somos-hero__layer--land img {
	filter: saturate(0.85) contrast(1.08) brightness(0.92);
}

.somos-hero__layer--haze {
	background:
		linear-gradient(90deg, rgba(10, 11, 11, 0.95) 0%, rgba(10, 11, 11, 0.8) 28%, rgba(10, 11, 11, 0.3) 60%, rgba(10, 11, 11, 0.12) 100%),
		linear-gradient(0deg, rgba(10, 11, 11, 0.95) 0%, rgba(10, 11, 11, 0) 48%),
		linear-gradient(180deg, rgba(10, 11, 11, 0.35) 0%, rgba(10, 11, 11, 0) 30%);
}

.somos-hero__layer--grid {
	background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 128px 128px;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), #000);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), #000);
}

/* The radar sits fully inside the hero: the outer ring spans 88% of the box, and the layer
   overhangs the hero by 6% per side for parallax, hence the 9% inset. */
.somos-hud {
	position: absolute;
	right: 9%;
	top: 50%;
	width: min(52vw, 760px);
	height: auto;
	transform: translateY(-50%);
	opacity: 0.85;
	fill: none;
	stroke: rgba(255, 255, 255, 0.34);
	stroke-width: 1;
}

.somos-hud__ring--ticks {
	stroke: rgba(255, 255, 255, 0.5);
	stroke-dasharray: 2 31.3;
	stroke-width: 10;
	opacity: 0.55;
}

.somos-hud__ring--dash {
	stroke-dasharray: 6 10;
	stroke: rgba(201, 180, 142, 0.55);
	transform-box: fill-box;
	transform-origin: center;
	animation: somos-spin 120s linear infinite;
}

.somos-hud__ring--inner {
	stroke: rgba(255, 255, 255, 0.22);
}

/* The sweep turns by SVG animateTransform around the radar centre (see render.php). The trail
   wedges stack to a fade that is brightest along the gold leading edge. */
.somos-hud__sweep {
	opacity: 0.9;
}

.somos-hud__trail path {
	fill: rgba(201, 180, 142, 0.032);
	stroke: none;
}

.somos-hud__beam {
	stroke: rgba(226, 207, 166, 0.85);
	stroke-width: 1.25;
}

.somos-hud__cross {
	stroke: rgba(255, 255, 255, 0.28);
}

.somos-hud__node circle:first-child {
	fill: #C9B48E;
	stroke: none;
}

/* The pulse grows its radius (SVG animate in render.php), so it always stays centred on its dot. */
.somos-hud__node circle:last-child {
	stroke: rgba(201, 180, 142, 0.7);
}

/* The theme's vector mark, filled with currentColor: the Gold preset. */
.somos-hud__mark {
	color: var(--wp--preset--color--gold, #C9B48E);
	stroke: none;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.somos-hud__label {
	fill: rgba(255, 255, 255, 0.55);
	stroke: none;
	font-family: "Geist Mono", ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: 0.18em;
}

/* Content */
.somos-hero__content {
	position: relative;
	z-index: 2;
	/* Border-box so the inline padding sits inside the hero instead of pushing 2× gutter past it on phones. */
	box-sizing: border-box;
	width: 100%;
	max-width: calc(46rem + 2 * var(--somos-inline, var(--wp--custom--gutter, 2rem)));
	padding: clamp(4rem, 12vh, 8rem) var(--somos-inline, var(--wp--custom--gutter, 2rem)) clamp(3rem, 8vh, 6rem);
	transform: translateY(calc(var(--sy) * 0.18px));
	opacity: calc(1 - var(--sp) * 0.85);
}

/* Pill above the eyebrow ("Veteran-owned & operated"): a gold star badge and mono caps. */
.somos-hero .somos-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 100%;
	margin: 0 0 1.25rem;
	padding: 0.4rem 1.15rem 0.4rem 0.45rem;
	border: 1px solid rgba(201, 180, 142, 0.55);
	border-radius: 999px;
	background: rgba(10, 11, 11, 0.4);
	color: var(--wp--preset--color--gold-bright, #E2CFA6);
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.somos-hero__pill svg {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
}

.somos-hero__pill circle {
	fill: var(--wp--preset--color--gold, #C9B48E);
}

.somos-hero__pill path {
	fill: var(--wp--preset--color--ink, #0A0B0B);
}

/* Two classes: global :root :where(h1, p) styles must not reach the hero's heading and display lines. */
.somos-hero .somos-hero__eyebrow {
	margin: 0 0 1.5rem;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66);
}

.somos-nowrap {
	white-space: nowrap;
}

/* The service phrase before the cities may wrap on a phone; the city names stay whole. */
.somos-hero__eyebrow .somos-nowrap:first-child {
	white-space: normal;
}

.somos-hero .somos-hero__title {
	margin: 0 0 1.75rem;
	font-family: var(--wp--preset--font-family--sans, sans-serif);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 0.96;
	max-width: 12ch;
}

.somos-hero__title span {
	display: block;
}

.somos-hero__brand {
	color: #E2CFA6;
}

.somos-hero__lead {
	margin: 0;
	max-width: 33rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.76);
}

.somos-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	margin-top: 2.5rem;
}

.somos-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 3.5rem;
	padding: 0 1.6rem;
	background: #fff;
	color: #0A0B0B;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

/* The global link hover colour (gold-deep) must not reach the hero: dark text on gold, white on dark. */
.somos-hero__btn:hover,
.somos-hero__btn:focus,
.somos-hero__btn:focus-visible {
	background: #C9B48E;
	color: #0A0B0B;
	transform: translateY(-2px);
}

.somos-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.5rem 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.somos-hero__link span {
	transition: transform 200ms var(--ease);
}

.somos-hero__link:hover,
.somos-hero__link:focus,
.somos-hero__link:focus-visible {
	color: #fff;
	border-bottom-color: #E2CFA6;
}

.somos-hero__link:hover span {
	transform: translateX(5px);
}

/* Footer bar */
.somos-hero__footer {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding: 1rem var(--somos-inline, var(--wp--custom--gutter, 2rem));
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(8, 9, 9, 0.62);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.somos-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.25rem;
	margin: 0;
	padding: 0;
	/* Clips the separator dot of a badge that wraps to the start of a new line. */
	overflow: hidden;
	list-style: none;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.somos-hero__badges li {
	position: relative;
}

.somos-hero__badges li + li::before {
	content: "";
	position: absolute;
	left: -1.25rem;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #C9B48E;
	transform: translateY(-50%);
}

.somos-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0.45rem 0.9rem;
	border: 1px solid rgba(201, 180, 142, 0.45);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	color: #E2CFA6;
}

.somos-hero__chip i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #C9B48E;
	box-shadow: 0 0 0 0 rgba(201, 180, 142, 0.6);
	animation: somos-ping 2.2s ease-out infinite;
}

.somos-hero__cue {
	display: none;
}

/* Entrance animation (only when JS is present and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
	.js .somos-hero:not(.is-ready) .somos-hero__pill,
	.js .somos-hero:not(.is-ready) .somos-hero__eyebrow,
	.js .somos-hero:not(.is-ready) .somos-hero__title span,
	.js .somos-hero:not(.is-ready) .somos-hero__lead,
	.js .somos-hero:not(.is-ready) .somos-hero__actions,
	.js .somos-hero:not(.is-ready) .somos-hero__footer {
		opacity: 0;
	}

	.somos-hero.is-ready .somos-hero__pill { animation: somos-rise 800ms var(--ease) both; }
	.somos-hero.is-ready .somos-hero__eyebrow { animation: somos-rise 800ms var(--ease) 60ms both; }
	.somos-hero.is-ready .somos-hero__title span { animation: somos-rise 900ms var(--ease) both; animation-delay: calc(120ms + var(--i) * 110ms); }
	.somos-hero.is-ready .somos-hero__lead { animation: somos-rise 900ms var(--ease) 520ms both; }
	.somos-hero.is-ready .somos-hero__actions { animation: somos-rise 900ms var(--ease) 680ms both; }
	.somos-hero.is-ready .somos-hero__footer { animation: somos-fade 900ms var(--ease) 900ms both; }
	.somos-hero.is-ready .somos-hero__scene { animation: somos-scene 1600ms var(--ease) both; }
}

@keyframes somos-rise {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes somos-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes somos-scene {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes somos-spin {
	to { transform: rotate(360deg); }
}

@keyframes somos-ping {
	0% { box-shadow: 0 0 0 0 rgba(201, 180, 142, 0.6); }
	100% { box-shadow: 0 0 0 10px rgba(201, 180, 142, 0); }
}

@media (max-width: 900px) {
	.somos-hud {
		width: 120vw;
		right: -50%;
		opacity: 0.5;
	}

	/* The radar is background texture here; the header logo carries the mark. */
	.somos-hud__mark {
		display: none;
	}

	.somos-hero__layer picture,
	.somos-hero__layer img {
		object-position: 68% 40%;
	}

	.somos-hero__layer--haze {
		background:
			linear-gradient(90deg, rgba(10, 11, 11, 0.92) 0%, rgba(10, 11, 11, 0.55) 100%),
			linear-gradient(0deg, rgba(10, 11, 11, 0.96) 0%, rgba(10, 11, 11, 0) 55%);
	}

	.somos-hero__content {
		padding-top: clamp(3rem, 10vh, 5rem);
	}

	.somos-hero__footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.somos-hero__layer,
	.somos-hero__content {
		transform: none !important;
		opacity: 1 !important;
	}
}

/* Editor preview: keep it compact */
.editor-styles-wrapper .somos-hero {
	min-height: 560px;
}
