/**
 * Homepage Vision band (template-parts/home/vision.php, node 197:811).
 * The frame comes from the shared .band component; height is content-driven
 * (the node's 500px inner height is design-time scaffolding).
 */

.vision .band__overlay {
	/* Transparent top, unlike the hero gradient. Alpha stops are
	   surface-darkest; no alpha tokens exist for these. */
	background: linear-gradient(180deg, rgba(10, 11, 13, 0) 0%, rgba(10, 11, 13, 0.12) 30%, rgba(10, 11, 13, 0.75) 58%, var(--color-surface-darkest) 100%);
}

.vision__content {
	position: relative; /* above the overlay */
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding-top: 12rem; /* 192px = 3 x 64 per ruling; height is content-driven */
	padding-bottom: 4rem; /* 64px */
}

.vision__column {
	width: 50%; /* the node's 656px = 50% of the 1312 container */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.vision__column .eyebrow {
	margin-bottom: 32px;
}

.vision__column h2 {
	margin-bottom: 64px;
	color: var(--color-heading-text-on-dark);
}

.vision__text {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
	font-weight: var(--type-body-lg-weight);
	color: var(--color-body-text-on-dark);
}

/* The whole band is one link. It wraps the media, the overlay and the
   content; leaving it statically positioned keeps the absolute layers
   anchored to .band exactly as before. */
.vision__band-link {
	display: block;
	color: inherit;
	text-decoration: none;
	--on: 0;
}

/* Only the chip shows at rest. Figma sets the label in Inter, which is drift
   (banned font); ruling: IBM Plex Sans 600 14px = the btn-primary type values. */
.vision__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--color-heading-text-on-dark);
	font-family: var(--font-body);
	font-size: var(--type-btn-primary-size);
	line-height: var(--type-btn-primary-line);
	letter-spacing: var(--type-btn-primary-spacing);
	font-weight: var(--type-btn-primary-weight);
}

/* The label is absolute, so it takes no space and the chip never shifts when
   it appears. Its right edge sits 12px left of the chip; the mask clips
   whatever has not slid out yet. */
.vision__cta-label {
	position: absolute;
	right: calc(100% + 12px);
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	overflow: hidden;
	white-space: nowrap;
}

/* Starts pushed toward the chip and slides leftward into place. */
.vision__cta-label-in {
	display: block;
	transform: translateX(calc((1 - var(--on, 0)) * 100%));
	opacity: var(--on, 0);
	transition:
		transform 600ms var(--motion-ease-interaction),
		opacity 600ms var(--motion-ease-interaction);
}

/* Activation. Deliberately NOT gated on reduced motion: the label still has
   to appear, and the global stub makes it instant. Hover is gated so a tap
   does not leave it stuck open. */
.vision__band-link:focus-visible {
	--on: 1;
}

@media (hover: hover) {
	.vision__band-link:hover {
		--on: 1;
	}
}

/* Image zoom, matching the service cards exactly (1.04, 650ms, reveal curve).
   The gradient is a separate layer and never scales; .band already clips.
   Gated on no-preference so reduced motion gets no zoom at all rather than
   an instant jump. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.vision .band__media {
		transition: transform 650ms var(--motion-ease);
		will-change: transform;
	}

	.vision__band-link:hover .band__media,
	.vision__band-link:focus-visible .band__media {
		transform: scale(1.04);
	}
}

/* The chip is the shared .icon-chip component (base.css): glass default,
   accent fill on parent link hover/focus. It holds the shared arrow loop. */

/* --------------------------------------------------------------------
 * Responsive (<=1024): stacked bottom-left, link row under the text
 * -------------------------------------------------------------------- */

@media (max-width: 1024px) {
	/* 32px on all four sides, matching the hero. Two classes for the same
	   reason: .band .container would otherwise win and add 16px. */
	.vision .vision__content {
		width: 100%;
		max-width: none;
		/* 96px minimum of clear space above the eyebrow (desktop gets it from
		   the 192px lead-in); 32px on the other three sides. */
		padding: 96px 32px 32px;
		flex-direction: column;
		align-items: flex-start;
		gap: 48px;
	}

	.vision__column {
		width: 100%;
	}

	.vision__column h2 {
		margin-bottom: 32px;
	}

	/* Without hover there is nothing to reveal the label, so it becomes a
	   plain row: static, always readable, chip after it. The band link, the
	   zoom and the arrow loop are untouched. */
	.vision__cta {
		gap: 12px;
	}

	.vision__cta-label {
		position: static;
		overflow: visible;
	}

	.vision__cta-label-in {
		transform: none;
		opacity: 1;
	}
}
