/* Keynote-style stage for the coming-soon page. JS sets --mx/--my (spotlight) and --rx/--ry (logo tilt). */

.ntw-stage {
	--mx: 50%;
	--my: 40%;
	--rx: 0deg;
	--ry: 0deg;
	--split: 0px;
	overflow: hidden;
	color: #fff;
	cursor: crosshair;
}

/* Fine grid, only visible inside the spotlight. */
.ntw-stage::before,
.ntw-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.ntw-stage::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center;
	-webkit-mask-image: radial-gradient(circle 340px at var(--mx) var(--my), #000 0%, transparent 100%);
	mask-image: radial-gradient(circle 340px at var(--mx) var(--my), #000 0%, transparent 100%);
}

/* Spotlight glow plus a faint pink/amber haze low on the stage. */
.ntw-stage::after {
	background:
		radial-gradient(circle 520px at var(--mx) var(--my), rgba(242, 41, 91, 0.16), transparent 70%),
		radial-gradient(ellipse 80% 45% at 50% 115%, rgba(255, 170, 18, 0.10), transparent 70%);
}

.ntw-stage .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Logo: white, tilts toward the cursor, splits into pink and amber on hover. */
.ntw-logo {
	perspective: 900px;
}

.ntw-logo img {
	filter: invert(1)
		drop-shadow(calc(var(--split) * -1) 0 rgba(242, 41, 91, 0.9))
		drop-shadow(var(--split) 0 rgba(255, 170, 18, 0.85));
	transition: transform 0.25s ease-out, filter 0.3s ease-out;
	transform: rotateX(var(--ry)) rotateY(var(--rx));
	will-change: transform, filter;
}

.ntw-stage.is-hot .ntw-logo img {
	animation: ntw-glitch 2.4s steps(1) infinite;
}

@keyframes ntw-glitch {
	0%, 86%, 100% { clip-path: inset(0 0 0 0); translate: 0; }
	88% { clip-path: inset(12% 0 58% 0); translate: -6px 0; }
	90% { clip-path: inset(62% 0 8% 0); translate: 5px 0; }
	92% { clip-path: inset(30% 0 40% 0); translate: -3px 0; }
	94% { clip-path: inset(0 0 0 0); translate: 0; }
}

/* Pink rule with a light sweep. */
.ntw-rule.wp-block-separator {
	position: relative;
	overflow: hidden;
	width: 88px;
}

.ntw-rule.wp-block-separator::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, #fff, transparent);
	transform: translateX(-100%);
	animation: ntw-sweep 3.2s ease-in-out infinite;
}

@keyframes ntw-sweep {
	60%, 100% { transform: translateX(100%); }
}

/* Terminal caret after the eyebrow. */
.wp-block-cover.ntw-stage .ntw-eyebrow::after {
	content: "_";
	margin-left: 0.15em;
	animation: ntw-blink 1s steps(1) infinite;
}

@keyframes ntw-blink {
	50% { opacity: 0; }
}

.ntw-lede {
	font-weight: 300;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.ntw-note {
	color: #8a8a8a;
}

.ntw-note a {
	color: #fff;
	text-decoration-color: #f2295b;
	text-underline-offset: 0.25em;
	transition: color 0.2s;
}

.ntw-note a:hover {
	color: #f2295b;
}

/* Register button: outlined, fills pink with a glow and a light sweep on hover. */
.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link {
	position: relative;
	overflow: hidden;
	padding: 0.95em 2.1em;
	border: 1px solid #f2295b;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background 0.3s, box-shadow 0.3s, letter-spacing 0.3s;
}

.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.6s ease;
}

.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link::after {
	content: " \2192";
}

.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link:hover,
.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link:focus-visible {
	background: #f2295b;
	color: #fff;
	letter-spacing: 0.28em;
	box-shadow: 0 0 0 1px #f2295b, 0 0 32px rgba(242, 41, 91, 0.55), 0 0 90px rgba(242, 41, 91, 0.25);
}

.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link:hover::before {
	transform: translateX(120%);
}

/* Touch screens have no hover, so show the filled state and keep the label on one line. */
@media (hover: none) {
	.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link {
		background: #f2295b;
		box-shadow: 0 0 28px rgba(242, 41, 91, 0.45);
	}
}

@media (max-width: 480px) {
	.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link,
	.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link:hover {
		padding: 0.95em 1.4em;
		letter-spacing: 0.14em;
		white-space: nowrap;
	}
}

/* Keynote-style entrance. */
.ntw-stage .wp-block-cover__inner-container > * {
	opacity: 0;
	transform: translateY(18px);
	filter: blur(8px);
	animation: ntw-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.ntw-stage .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.35s; }
.ntw-stage .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 0.5s; }
.ntw-stage .wp-block-cover__inner-container > :nth-child(4) { animation-delay: 0.65s; }
.ntw-stage .wp-block-cover__inner-container > :nth-child(5) { animation-delay: 0.8s; }
.ntw-stage .wp-block-cover__inner-container > :nth-child(6) { animation-delay: 0.95s; }

@keyframes ntw-in {
	to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ntw-stage *,
	.ntw-stage *::after {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none;
	}
	.ntw-logo img { filter: invert(1); }
	.wp-block-cover.ntw-stage .ntw-btn .wp-block-button__link::before { display: none; }
}
