/* home.css — homepage hero + component styles (self-contained; home does not load amp.css) */

/* ============================================================
 ANAMORPHIC HERO (animates in on load, parallax on scroll)
 ============================================================ */
/* blue accent words: clean grotesque italic (page-local) */
.page .display .it {
	font-family: var(--sans);
	font-style: normal;
	font-weight: inherit;
	letter-spacing: inherit;
	font-size: 1em;
	color: var(--blue);
}

.hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: center;
	margin-top: 16px;
}

.hero-chips span {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(138, 161, 255, 0.32);
	background: rgba(110, 134, 255, 0.08);
	border-radius: 999px;
	padding: 9px 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hero-chips span::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--blue-cyan);
	box-shadow: 0 0 8px var(--blue-cyan);
}

.amp-eyebrows {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--nav-h) + 18px);
	z-index: 4;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 0 var(--gutter);
	pointer-events: none;
}

.amp-cue {
	position: absolute;
	left: 50%;
	bottom: 20px;
	z-index: 4;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	pointer-events: none;
}

.amp-cue .bar {
	width: 1px;
	height: 42px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

@keyframes ampcue {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.4;
	}

	50% {
		transform: translateY(8px);
		opacity: 1;
	}
}

.amp-cue .bar {
	animation: ampcue 1.8s ease-in-out infinite;
	transform-origin: top;
}

/* JS drives the entrance via rAF (this preview freezes CSS @keyframes).
 Base state is fully visible so content can never be stuck hidden. */
.amp-prep #amp-headline {
	opacity: 0;
}

.amp-prep #amp-sub {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.amp-prep #amp-headline,
	.amp-prep #amp-sub {
		opacity: 1 !important;
	}
}

/* scroll-driven horizontal marquee band */
.amp-marquee {
	overflow: hidden;
	padding: 38px 0;
	background: var(--ink);
	color: var(--paper);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amp-marquee-track {
	display: flex;
	align-items: center;
	gap: 30px;
	white-space: nowrap;
	width: max-content;
	will-change: transform;
}

.amp-marquee-track span {
	font-family: var(--sans);
	font-weight: 700;
	letter-spacing: -0.04em;
	font-size: clamp(26px, 3.4vw, 58px);
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.amp-marquee-track .x {
	color: var(--blue);
}

.amp-marquee-track .x svg {
	width: 0.66em;
	height: 0.66em;
	display: block;
}

[data-amp] {
	will-change: transform;
}

/* ============================================================
 SHARED HOME COMPONENT STYLES (carried from Home.html)
 ============================================================ */
.logo-slot {
	width: 150px;
	height: 58px;
}
.logo-carousel .logo-img {
	height: 60px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.55;
	transition: filter 0.25s, opacity 0.25s;
	flex: 0 0 auto;
}
.logo-carousel .logo-img:hover {
	filter: grayscale(0%);
	opacity: 1;
}
.logo-carousel:hover {
	animation-play-state: paused;
}

.logo-word {
	font-family: var(--sans);
	font-weight: 600;
	font-size: clamp(20px, 1.8vw, 27px);
	letter-spacing: -0.02em;
	color: var(--ink);
	opacity: 0.46;
	white-space: nowrap;
}

.logo-x {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	color: var(--blue);
}

.logo-x svg {
	width: 100%;
	height: 100%;
	display: block;
}

.logo-carousel {
	gap: 40px;
	align-items: center;
	animation-duration: 100s;
}

.trust-panel {
	background: var(--paper-2);
	border-radius: 24px;
	padding: 30px clamp(22px, 3vw, 44px) 36px;
}

.trust-head {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 44px;
}

.trust-head .eyebrow {
	color: var(--ink);
}

.trust-marquee {
	position: relative;
	overflow: hidden;
	margin-top: 26px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust-title {
	text-align: center;
	font-size: clamp(32px, 4vw, 60px) !important;
	letter-spacing: -0.03em;
	line-height: 1.05;
	max-width: 18ch;
	margin: 0 auto;
	color: var(--ink);
}
.trust-title .it {
	color: var(--blue);
}

@media (max-width: 680px) {
	.trust-stats {
		gap: 26px;
	}
}

.svc-card {
	background: #fff;
	border-radius: 20px;
	padding: 26px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.svc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 50px rgba(14, 14, 16, 0.1);
}

.svc-ghost {
	position: absolute;
	right: 2px;
	top: -26px;
	font-size: 118px;
	font-weight: 700;
	color: rgba(43, 76, 246, 0.06);
	letter-spacing: -0.04em;
	pointer-events: none;
	line-height: 1;
}

.cta-card {
	position: relative;
	overflow: hidden;
	color: #fff;
	border-radius: 0;
	padding: clamp(64px, 8vw, 128px) 0;
	background: radial-gradient(ellipse 50% 90% at 100% -8%, #2747a8, transparent 60%),
		radial-gradient(ellipse 45% 80% at 0% 110%, #16306a, transparent 62%),
		linear-gradient(135deg, #16306a 0%, #0f2247 100%);
}

.cta-card > * {
	position: relative;
	z-index: 1;
}

.cta-inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 44px;
	align-items: center;
	max-width: 1680px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.diff-metric {
	border-radius: 18px;
	padding: 30px;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* --- v2 polish --- */
.sp-frac {
	display: none !important;
}

.amp-sub {
	margin-top: 28px;
}

.studio-grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 60px;
	align-items: center;
}

.studio-btns {
	display: flex;
	gap: 12px;
	margin-top: 34px;
	flex-wrap: wrap;
}

.converge {
	position: relative;
	width: 100%;
	height: clamp(320px, 33vw, 430px);
	border-radius: 20px;
	overflow: hidden;
	background: radial-gradient(ellipse 90% 80% at 24% 8%, #18305c, transparent 62%),
		radial-gradient(ellipse 80% 95% at 98% 102%, rgba(43, 76, 246, 0.32), transparent 66%), #0a1020;
	border: 1px solid rgba(110, 134, 255, 0.2);
}

#converge-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.cv-label {
	position: absolute;
	left: 22px;
	transform: translateY(-50%);
	font-family: var(--sans);
	font-weight: 600;
	font-size: clamp(15px, 1.4vw, 21px);
	letter-spacing: -0.01em;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	pointer-events: none;
}

.cv-label::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c, var(--blue));
	box-shadow: 0 0 10px var(--c, var(--blue));
}

.cv-out {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	text-align: right;
	pointer-events: none;
}

.cv-out .big {
	font-family: var(--sans);
	font-weight: 600;
	font-size: clamp(24px, 2.5vw, 40px);
	letter-spacing: -0.025em;
	line-height: 1;
	color: #fff;
}

.cv-out .big .it {
	color: var(--blue-cyan);
}

.cv-out .sub {
	margin-top: 8px;
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.6);
}

/* ---- static cards, alternating black / blue-gradient ---- */
.svc-panels {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

.svc-panel {
	position: relative;
	overflow: hidden;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 372px;
	background: #0e1118;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 20px;
	padding: 26px;
	color: #fff;
	transition: border-color 0.35s, box-shadow 0.35s;
}

.svc-panel:nth-child(2n) {
	background: linear-gradient(155deg, #16307a 0%, #0c1430 72%);
	border-color: rgba(110, 134, 255, 0.4);
}

.svc-panel:hover {
	box-shadow: 0 20px 50px rgba(8, 14, 34, 0.45);
}

.svc-panel:nth-child(2n + 1):hover {
	border-color: rgba(255, 255, 255, 0.22);
}

.svc-panel:nth-child(2n):hover {
	border-color: rgba(110, 134, 255, 0.7);
}

.sp-top {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.sp-num {
	font-family: var(--sans);
	font-size: clamp(34px, 3.4vw, 54px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--blue-cyan);
}

.svc-panel:nth-child(2n + 1) .sp-num {
	color: rgba(255, 255, 255, 0.4);
}

.sp-frac {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.45);
	white-space: nowrap;
}

.sp-icon {
	position: relative;
	z-index: 2;
	width: 40px;
	height: 40px;
	color: var(--blue-cyan);
}

.svc-panel:nth-child(2n + 1) .sp-icon {
	color: rgba(255, 255, 255, 0.4);
}

.sp-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.sp-foot {
	position: relative;
	z-index: 2;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 13px;
}

.sp-title {
	font-family: var(--sans);
	font-size: clamp(22px, 1.6vw, 27px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: #fff;
	margin: 0;
}

.sp-desc {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.68);
	margin: 0;
}

.sp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sp-tags span {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.03em;
	color: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.sp-go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--blue-cyan);
	margin-top: 2px;
}

.sp-go svg {
	display: block;
}

@media (max-width: 560px) {
	.svc-panel {
		min-height: auto;
	}
}

/* method cards with motion graphics */
.method-card {
	position: relative;
	background: linear-gradient(180deg, #10131c, #0b0d14);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	min-height: 316px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.method-cv-wrap {
	position: relative;
	height: 148px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	background: radial-gradient(ellipse 90% 90% at 50% 30%, rgba(43, 76, 246, 0.16), transparent 70%);
}

.method-cv {
	display: block;
	width: 100%;
	height: 100%;
}

.method-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.method-ix {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blue-cyan);
}

.method-body h3 {
	font-family: var(--sans);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1;
	color: #fff;
	margin: 0;
}

.method-body p {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.62);
	margin: 0;
	max-width: 32ch;
}

@media (max-width: 1100px) {
	#services-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	#method-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 900px) {
	.cta-inner {
		grid-template-columns: 1fr;
	}

	.studio-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.converge {
		height: 300px;
	}

	.diff-head {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}

	.diff-contrast {
		grid-template-columns: 1fr !important;
	}

	.diff-metrics {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 900px) {
	.amp-hero {
		min-height: 62vh;
	}
}

@media (max-width: 560px) {
	#services-grid {
		grid-template-columns: 1fr !important;
	}

	.amp-hero {
		min-height: auto;
		padding-bottom: 64px;
	}

	#method-grid {
		grid-template-columns: 1fr !important;
	}
	.amp-cue {
		display: none !important;
	}
	/* shorter marquee bar on mobile */
	.amp-marquee {
		padding: 16px 0;
	}
	.amp-marquee-track span {
		font-size: 22px; /* overrides the clamp's 26px floor */
	}
}
