/* Hero 01 "Signal" — the adaptive field from .assets/hero.html.
   Note: grid-template-columns animation is layout-cost by design (approved
   artifact); monitor CPU on low-end hardware before adding more of it. */
/* The hero field rests light: platinum ground, bars in an aqua whisper,
   copy solid onyx in BOTH states (client decision, 15 Sep). The wake is a
   second column layer ABOVE the copy — white bars in difference blend —
   so waking columns invert whatever they cross: the ground turns to ink
   and the onyx type lights up beneath them, live, as the flow runs. */
.hero-signal {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--paper);
	color: var(--ink);
	isolation: isolate;
}

/* The signal rests calm and low-contrast so the headline reads cleanly;
   hovering the hero wakes it — bars deepen to ink and the flow runs.
   (Client decision, 2 Sep 2026: animations live on hover, not on load.) */
.signal-grid {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr var(--signal-gap) 1fr var(--signal-gap) 3fr var(--signal-gap) 1fr;
	animation: signal-flow 10s cubic-bezier(0.77, 0, 0.18, 1) infinite;
	animation-play-state: paused;
	will-change: grid-template-columns;
}
.signal-grid i { display: block; background: var(--signal-rest); transition: background 0.7s ease; }
.signal-grid span { display: block; background: var(--paper); }

/* the wake layer: same grid, same animation (they stay in sync — both run
   and pause together on the same timeline), painted over the copy */
.signal-grid--wake {
	z-index: 3;
	pointer-events: none;
	mix-blend-mode: difference;
	opacity: 0;
	transition: opacity 0.7s ease;
}
.signal-grid--wake i { background: var(--signal-wake); }
.signal-grid--wake span { background: transparent; }

/* hover wakes the field: the flow runs and the wake layer surfaces */
.hero-signal:hover .signal-grid,
.hero-signal:focus-within .signal-grid { animation-play-state: running; }
.hero-signal:hover .signal-grid--wake,
.hero-signal:focus-within .signal-grid--wake { opacity: 1; }

@keyframes signal-flow {
	0%, 100% { grid-template-columns: 1fr var(--signal-gap) 1fr var(--signal-gap) 3fr var(--signal-gap) 1fr; }
	18% { grid-template-columns: 1fr var(--signal-gap) 2.65fr var(--signal-gap) 1fr var(--signal-gap) 1.35fr; }
	38% { grid-template-columns: 2.7fr var(--signal-gap) 1.3fr var(--signal-gap) 1fr var(--signal-gap) 1fr; }
	59% { grid-template-columns: 1.1fr var(--signal-gap) 1fr var(--signal-gap) 1.15fr var(--signal-gap) 2.75fr; }
	79% { grid-template-columns: 1fr var(--signal-gap) 1.7fr var(--signal-gap) 2.1fr var(--signal-gap) 1.2fr; }
}

/* static variant: the homepage's typographic scale and placement,
   without the moving field — interior heroes (products, resources,
   platform, build) share the drama, skip the animation */
.hero-static { background: var(--paper); }
.hero-signal h1 .line { display: block; }
.hero-signal h1 .line + .line { font-weight: 300; margin-left: 0.53em; }

.signal-copy {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 118px var(--gutter) 34px;
	color: var(--ink);
}
.signal-copy .eyebrow span + span { color: var(--gold); }

.hero-signal h1 {
	max-width: 1380px;
	margin: 52px 0 86px;
	font-size: var(--fs-display);
	font-weight: 500;
	line-height: 0.83;
	letter-spacing: -0.073em;
}
.hero-signal .h1-line2 {
	display: block;
	margin-left: 0.53em;
	font-weight: 300;
}
/* breath words inherit the display sizing; their stretch is the motion */
.hero-signal .exhale, .hero-signal .inhale { font-weight: inherit; }
.hero-signal .exhale { font-stretch: 125%; }
.hero-signal .inhale { font-stretch: 87%; }

.signal-footer {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto;
	align-items: end;
	gap: 32px;
	border-top: 1px solid currentColor;
	padding-top: 15px;
}
/* the ghost CTA sits on the flowing field: a solid platinum chip reads on
   both the whisper and the inverted ink. The chip rule outloads the global
   hover (same specificity, later file), so the hover is restated here. */
.hero-signal .cta--ghost { background: var(--paper); }
.hero-signal .cta--ghost:hover,
.hero-signal .cta--ghost:focus-visible { background: var(--ink); color: var(--silver); }
.signal-note {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
	.signal-copy { padding: 104px 18px 22px; }
	.hero-signal h1 { margin: 30px 0 60px; font-size: clamp(3.2rem, 15vw, 7.4rem); }
	.hero-signal .h1-line2 { margin-left: 0; }
	.hero-signal h1 .line + .line { margin-left: 0; }
	.signal-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	:root { --signal-gap: 8vw; }
}

@media (prefers-reduced-motion: reduce) {
	.signal-grid { animation: none; }
}
