/* Home hero: vector field, readout, title block, tape. Ported from docs/design/prototypes/home.html (S01). */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: clip;
	padding-block: 110px 40px;
	background:
		radial-gradient(60% 55% at 78% 8%, var(--glow-blue), transparent 70%),
		radial-gradient(40% 40% at 6% 100%, var(--glow-gold), transparent 70%),
		var(--ink-950);
}

#field {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0 var(--rail);
	border-inline: 1px solid var(--ln);
	z-index: 1;
	pointer-events: none;
}

.hero .wrap {
	z-index: 2;
}

.d1 {
	font-size: var(--fs-d1);
	line-height: 0.9;
	font-weight: 300;
	letter-spacing: -0.045em;
}

.d1 strong {
	font-weight: 800;
}

.d1 .ln {
	display: block;
}

.d1 .lt {
	color: var(--dim-soft);
}

.d1 .hi {
	color: var(--gold-300);
	font-weight: 800;
}

.dim {
	position: relative;
	height: 22px;
	margin-block: 18px 30px;
	color: var(--gold-300);
	display: flex;
	align-items: center;
	gap: 10px;
	width: var(--w, 60%);
	max-width: 100%;
	transition:
		opacity 0.8s 0.9s var(--ease),
		width 0.2s;
}

.dim::before,
.dim::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentcolor;
	opacity: 0.55;
}

.dim span {
	font: 500 11px var(--font-mono);
	letter-spacing: 0.14em;
	white-space: nowrap;
	color: var(--gold-300);
}

.dim i {
	position: absolute;
	inset-block: 2px;
	width: 1px;
	background: currentcolor;
}

.dim i:first-child {
	inset-inline-start: 0;
}

.dim i:last-child {
	inset-inline-end: 0;
}

.js .dim {
	opacity: 0;
}

.js .ready .dim {
	opacity: 1;
}

.hero-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	flex-wrap: wrap;
}

.hero-copy {
	max-width: 520px;
}

.hero-copy p {
	color: var(--text-soft);
	font-size: var(--fs-lead);
	margin-block-end: 28px;
}

.cta-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.tb {
	width: min(100%, 340px);
	border: 1px solid var(--ln-s);
	background: var(--glass);
	backdrop-filter: blur(8px);
	font-size: 12px;
	position: relative;
}

.tb div {
	display: grid;
	grid-template-columns: 110px 1fr;
	border-block-end: 1px solid var(--ln);
}

.tb div:last-child {
	border: 0;
}

.tb dt,
.tb dd {
	padding: 9px 14px;
}

.tb dt {
	color: var(--gray-300);
	border-inline-end: 1px solid var(--ln);
}

.tb .ttl {
	display: block;
	grid-template-columns: 1fr;
	background: var(--gold-wash);
	color: var(--gold-300);
	padding: 9px 14px;
	letter-spacing: 0.14em;
}

.readout {
	position: absolute;
	inset-inline-start: var(--rail);
	inset-block-start: 112px;
	margin-inline-start: 20px;
	z-index: 2;
	color: var(--gray-300);
	display: grid;
	gap: 4px;
	font-size: 11px;
}

.readout b {
	color: var(--gold-300);
	font-weight: 500;
	display: inline-block;
	min-width: 5ch;
}

.cue {
	position: absolute;
	inset-inline-end: var(--rail);
	inset-block-start: 112px;
	margin-inline-end: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--gray-300);
}

.streaks {
	display: grid;
	gap: 4px;
}

.streaks i {
	display: block;
	height: 2px;
	background: var(--gold-300);
	animation: streak 2.4s var(--ease-io) infinite;
}

.streaks i:nth-child(1) {
	width: 34px;
}

.streaks i:nth-child(2) {
	width: 24px;
	animation-delay: 0.12s;
}

.streaks i:nth-child(3) {
	width: 14px;
	animation-delay: 0.24s;
}

@keyframes streak {
	0%,
	100% {
		transform: scaleX(0.2);
		transform-origin: left;
		opacity: 0.4;
	}

	50% {
		transform: scaleX(1);
		opacity: 1;
	}
}

html[dir="rtl"] .streaks i {
	transform-origin: right !important;
}

.rm .streaks i {
	animation: none;
}

/* tape measure ticker: home-chrome.js repeats the words and runs them as a scroll-skewed marquee */
.tape {
	position: relative;
	background: var(--ink-950);
	padding-block: 18px;
	overflow: hidden;
	border-block: 1px solid var(--ln);
}

.tape .rl {
	height: 12px;
	background:
		repeating-linear-gradient(90deg, var(--ln-s) 0 1px, transparent 1px 10px),
		repeating-linear-gradient(90deg, var(--gold-300) 0 1px, transparent 1px 100px);
	background-size:
		100% 6px,
		100% 12px;
	background-repeat: repeat-x;
}

.tape .rl.b {
	transform: scaleY(-1);
}

.tape-in {
	display: flex;
	white-space: nowrap;
	will-change: transform;
	padding-block: 20px;
}

.tape-in span {
	display: inline-flex;
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	padding-inline-end: clamp(24px, 4vw, 64px);
	font-weight: 800;
	font-size: clamp(48px, 8vw, 128px);
	letter-spacing: -0.04em;
	line-height: 1;
}

.tape-in span:nth-child(even) {
	font-weight: 300;
	color: var(--dim-soft);
}

.tape-in svg {
	width: 0.4em;
	height: 0.4em;
	color: var(--gold-300);
	flex: none;
}

:lang(ar) .tape-in span {
	letter-spacing: 0;
}

@media (max-width: 1000px) {
	.hero-row {
		align-items: stretch;
	}

	.tb {
		display: none;
	}
}
