/**
 * onmethod-2027 — wow-contact.css: the finish line, 1000x.
 *
 * Checkered-flag dark hero, starting-grid form shell with a glowing
 * track toggle. Copy untouched — CSS only.
 * Respects prefers-reduced-motion and html.wow-off.
 */

/* ============ 1. Dark hero ============ */

.is-contact .contact-hero {
	position: relative;
	overflow: hidden;
	background: #0a0a0c;
	color: #f4f4f2;
	border-bottom: 0;
}

.contact-hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(10, 10, 12, 0.45), rgba(10, 10, 12, 0.93) 85%),
		url("../img/contact-finish.jpg") center 30% / cover no-repeat,
		#0a0a0c;
	pointer-events: none;
}

@supports (animation-timeline: view()) {
	.contact-hero__bg {
		animation: contact-hero-drift linear both;
		animation-timeline: view();
		animation-range: entry 0% exit 100%;
	}
	@keyframes contact-hero-drift {
		from { transform: scale(1.1) translateY(-3%); }
		to { transform: scale(1.04) translateY(2%); }
	}
}

.is-contact .contact-hero .wrap { position: relative; z-index: 1; }

.is-contact .contact-hero .kicker { color: var(--volt); }

.is-contact .contact-hero h1 {
	font-size: clamp(2.4rem, 7vw, 4.6rem);
	letter-spacing: -0.025em;
	line-height: 1.04;
	text-wrap: balance;
	max-width: 18ch;
}

.is-contact .contact-hero .lede { color: rgba(244, 244, 242, 0.72); }

.is-contact .contact-hero .btn-secondary {
	color: #f4f4f2;
	border-color: rgba(244, 244, 242, 0.35);
}

/* ============ 2. Starting grid — the form shell ============ */

.is-contact .form-shell {
	background:
		radial-gradient(700px 300px at 50% 0%, rgba(217, 255, 0, 0.07), transparent 60%),
		#101014;
	color: #f4f4f2;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 24px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.is-contact .form-shell .kicker { color: var(--volt); }

.is-contact .form-shell h2 { color: #f4f4f2; }

.is-contact .form-shell .meta { color: rgba(244, 244, 242, 0.62); }

/* Track toggle: pit-lane selector. */
.is-contact .track-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 0.4rem;
	margin-bottom: 1.75rem;
}

.is-contact .track-tab {
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: rgba(244, 244, 242, 0.6);
	font: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	padding: 0.85rem 0.6rem;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.is-contact .track-tab.is-active {
	background: var(--volt);
	color: #111;
	box-shadow: 0 6px 24px rgba(217, 255, 0, 0.35);
}

/* Fluent Forms on dark: keep inputs readable. */
.is-contact .form-shell .fluentform .ff-el-form-control,
.is-contact .form-shell .fluentform input[type="text"],
.is-contact .form-shell .fluentform input[type="email"],
.is-contact .form-shell .fluentform input[type="tel"],
.is-contact .form-shell .fluentform select,
.is-contact .form-shell .fluentform textarea {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
	color: #f4f4f2 !important;
}

.is-contact .form-shell .fluentform label,
.is-contact .form-shell .fluentform .ff-el-form-check-label { color: rgba(244, 244, 242, 0.85) !important; }


/* Breathing volt glow — the hero stays alive. */
.contact-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(700px 340px at 50% 108%, rgba(217, 255, 0, 0.09), transparent 62%);
	animation: hero-breathe 7s ease-in-out infinite;
}

@keyframes hero-breathe {
	50% { opacity: 0.35; }
}

/* ============ 3. Kill switch ============ */

html.wow-off .contact-hero__bg { animation: none; }
html.wow-off .contact-hero::after { animation: none; }
