/* ==========================================================================
   Hero Section — Stormy Cityscape, Cinematic Opening Intro & Audio Player
   ========================================================================== */

.ww-hero {
	position: relative;
	width: 100%;
	height: 826px;
	background-color: var(--ww-hero-bg);
	color: var(--ww-hero-white);
	overflow: hidden;
}

/* ==========================================================================
   Floating Blue Theme-Song Audio Player (Top-Right of Hero)
   ========================================================================== */

.ww-audio-player {
	position: absolute;
	top: 15px;
	left: calc(50% + 355px);
	z-index: 25;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: 130px;
	height: 40px;
	padding: 0 12px 0 14px;
	background-color: var(--ww-blue);
	color: var(--ww-white);
	font-family: 'Helvetica Neue', 'WW Helvetica', Arial, sans-serif;
	font-size: 12px;
	line-height: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.ww-audio-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ww-white);
	cursor: pointer;
	flex-shrink: 0;
	transition: color 0.3s ease, opacity 0.3s ease;
}

.ww-audio-btn:hover,
.ww-audio-btn:focus-visible {
	color: #cfe4ff;
	opacity: 0.9;
}

.ww-audio-btn svg {
	width: 18px;
	height: 20px;
}

.ww-audio-btn .ww-audio-icon-play {
	display: block;
}

.ww-audio-btn .ww-audio-icon-pause {
	display: none;
}

.ww-audio-player.is-playing .ww-audio-btn .ww-audio-icon-play {
	display: none;
}

.ww-audio-player.is-playing .ww-audio-btn .ww-audio-icon-pause {
	display: block;
}

.ww-audio-time {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	user-select: none;
}

/* Small Fixed Corner Music-Note Audio Toggle (Black = On, Red + Slash = Off) */
.ww-intro-sound-btn {
	position: fixed;
	left: auto;
	right: 14px;
	bottom: max(14px, env(safe-area-inset-bottom, 14px));
	z-index: 2147483645;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(225, 29, 72, 0.85);
	background: rgba(255, 255, 255, 0.92);
	color: #e11d48;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ww-intro-sound-btn .ww-sound-note-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.ww-intro-sound-btn .ww-note-slash {
	opacity: 1;
	transition: opacity 0.18s ease;
}

.ww-intro-sound-btn.is-playing {
	border-color: var(--ww-gold);
	background: rgba(255, 255, 255, 0.95);
	color: #000000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 195, 66, 0.35);
}

.ww-intro-sound-btn.is-playing .ww-note-slash {
	opacity: 0;
}

.ww-intro-sound-btn:hover,
.ww-intro-sound-btn:focus-visible {
	transform: scale(1.08);
	outline: none;
}

/* ==========================================================================
   Settled Hero Stage (Stormy Blue Cityscape + Left-Aligned Typography)
   ========================================================================== */

.ww-hero-stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	align-items: end;
	padding: 120px clamp(20px, 6.8vw, 115px) clamp(96px, 9vw, 130px);
	isolation: isolate;
	overflow: hidden;
}

.ww-hero-stage::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -3;
	background-image:
		linear-gradient(180deg, rgba(2, 11, 24, 0.04), rgba(1, 7, 17, 0.18) 70%, rgba(1, 7, 17, 0.42)),
		url('../images/hero-sky-cityscape.png');
	background-position: center;
	background-size: cover;
	transform: scale(1.05);
	filter: brightness(1.52) saturate(1.38) contrast(1.02);
	animation: ww-hero-weather 10s ease-in-out infinite alternate;
}

.ww-hero-stage::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(1, 12, 31, 0.68) 0%, rgba(2, 28, 58, 0.36) 45%, rgba(7, 91, 145, 0.05) 78%),
		linear-gradient(0deg, rgba(2, 9, 21, 0.76) 0%, rgba(3, 31, 65, 0.08) 42%, transparent 68%);
}

.ww-hero-light {
	position: absolute;
	z-index: -1;
	width: 72vw;
	height: 72vw;
	right: -12vw;
	top: 2%;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(157, 241, 255, 0.48) 0%,
		rgba(49, 195, 255, 0.24) 28%,
		transparent 68%
	);
	mix-blend-mode: screen;
	pointer-events: none;
	animation: ww-hero-pulse 4.5s ease-in-out infinite alternate;
}

.ww-hero-lightning {
	position: absolute;
	z-index: -1;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	background: url('../images/hero-sky-cityscape.png') center / cover no-repeat;
	filter: brightness(2.8) saturate(1.12) contrast(1.08);
	mix-blend-mode: screen;
}

.ww-hero-lightning-left {
	-webkit-mask-image: radial-gradient(ellipse at 20% 28%, #000 0 16%, rgba(0, 0, 0, 0.74) 27%, transparent 50%);
	mask-image: radial-gradient(ellipse at 20% 28%, #000 0 16%, rgba(0, 0, 0, 0.74) 27%, transparent 50%);
	animation: ww-strike-left 7.4s 0.5s infinite;
}

.ww-hero-lightning-right {
	-webkit-mask-image: radial-gradient(ellipse at 82% 24%, #000 0 16%, rgba(0, 0, 0, 0.72) 27%, transparent 50%);
	mask-image: radial-gradient(ellipse at 82% 24%, #000 0 16%, rgba(0, 0, 0, 0.72) 27%, transparent 50%);
	animation: ww-strike-right 8.6s 1.4s infinite;
}

.ww-hero-spotlight {
	position: absolute;
	z-index: -1;
	bottom: -35%;
	width: clamp(10rem, 16vw, 18rem);
	height: 125%;
	background: linear-gradient(0deg, rgba(235, 254, 255, 0.68), rgba(89, 220, 255, 0.27) 46%, transparent 88%);
	clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
	filter: blur(15px);
	mix-blend-mode: screen;
	transform-origin: 50% 100%;
	opacity: 0.66;
	pointer-events: none;
}

.ww-hero-spotlight-one {
	left: 13%;
	animation: ww-spotlight-one 7.5s ease-in-out infinite alternate;
}

.ww-hero-spotlight-two {
	right: 8%;
	animation: ww-spotlight-four 8.4s 0.8s ease-in-out infinite alternate;
}

.ww-hero-grid-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--container-max, 1240px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
}

.ww-hero-content {
	position: relative;
	z-index: 2;
	max-width: 780px;
}

.ww-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 18px;
	padding: 8px 18px;
	border-radius: var(--radius-pill, 9999px);
	color: var(--ww-hero-cyan);
	font-family: var(--ww-font-hero-display);
	font-size: clamp(20px, 1.8vw, 26px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 24px;
}

.ww-hero-showcase {
	position: relative;
	padding: 20px;
	border-radius: var(--radius-xl, 36px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ww-hero-showcase img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 24px rgba(86, 216, 255, 0.25));
}

.ww-hero-title {
	margin: 0 0 22px;
	max-width: 15ch;
	color: var(--ww-hero-white);
	font-family: var(--ww-font-hero-display);
	font-size: clamp(54px, 6.2vw, 90px);
	font-weight: 700;
	line-height: 0.84;
	letter-spacing: -0.035em;
	text-transform: uppercase;
}

.ww-hero-title-outline {
	display: block;
	color: var(--ww-gold);
	-webkit-text-stroke: 0;
	text-shadow:
		0 4px 18px rgba(2, 9, 21, 0.92),
		0 2px 4px rgba(0, 0, 0, 0.85),
		0 0 28px rgba(255, 195, 66, 0.35);
}

.ww-hero-copy {
	max-width: 700px;
	margin: 0;
	padding: 16px 22px;
	border-left: 4px solid var(--ww-gold);
	border-radius: 0 12px 12px 0;
	background: linear-gradient(90deg, rgba(2, 12, 30, 0.78) 0%, rgba(4, 22, 52, 0.56) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	font-family: var(--ww-font-hero-body);
	font-size: clamp(18px, 1.55vw, 23px);
	font-weight: 700;
	line-height: 1.52;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

/* ==========================================================================
   Cinematic Intro Overlay (True Full-Screen Viewport + Scroll Lock Until Done)
   ========================================================================== */

html.ww-intro-locked,
body.ww-intro-locked {
	overflow: hidden !important;
	height: 100% !important;
	overscroll-behavior: none !important;
	touch-action: none !important;
}

body.ww-intro-locked .ww-super-turkey,
body.ww-intro-locked .ww-sfx-toggle,
body.ww-intro-locked .ww-scroll-progress {
	opacity: 0 !important;
	pointer-events: none !important;
}

.ww-hero-intro {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 2147483640;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #010711;
	opacity: 1;
	visibility: visible;
	touch-action: none;
	overscroll-behavior: none;
	transform-origin: center center;
	will-change: transform, opacity, filter;
	transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
	            visibility 0s linear 0.75s;
}

.ww-hero-intro.is-scroll-zooming {
	transition: none;
}

.ww-hero.is-intro-complete .ww-hero-intro {
	opacity: 0 !important;
	visibility: hidden;
	pointer-events: none;
}

.ww-intro-sky {
	position: absolute;
	inset: -5%;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(1, 8, 22, 0.02), rgba(2, 16, 36, 0.08) 62%, rgba(1, 8, 20, 0.38)),
		url('../images/hero-sky-cityscape.png') center / cover no-repeat;
	filter: brightness(1.28) saturate(1.3) contrast(1.03);
	animation: ww-opening-sky 12s ease-in-out infinite alternate, ww-opening-electric 7.8s 0.5s infinite;
}

.ww-intro-spotlights {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
	mix-blend-mode: screen;
}

.ww-intro-spotlight {
	position: absolute;
	bottom: -22%;
	width: clamp(9rem, 17vw, 20rem);
	height: 125%;
	background: linear-gradient(0deg, rgba(217, 249, 255, 0.5), rgba(78, 207, 255, 0.18) 36%, transparent 88%);
	clip-path: polygon(43% 100%, 57% 100%, 100% 0, 0 0);
	filter: blur(14px);
	opacity: 0.48;
	transform-origin: 50% 100%;
}

.ww-intro-spotlight-1 { left: 4%; animation: ww-spotlight-one 6.8s ease-in-out infinite alternate; }
.ww-intro-spotlight-2 { left: 27%; opacity: 0.32; animation: ww-spotlight-two 8.2s 1s ease-in-out infinite alternate; }
.ww-intro-spotlight-3 { right: 25%; opacity: 0.34; animation: ww-spotlight-three 7.4s 0.4s ease-in-out infinite alternate; }
.ww-intro-spotlight-4 { right: 3%; animation: ww-spotlight-four 7.8s 1.3s ease-in-out infinite alternate; }

.ww-intro-heroes {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.ww-intro-hero {
	position: absolute;
	left: 50%;
	top: 50%;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.02);
	will-change: transform, opacity, filter;
}

.ww-intro-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.ww-intro-hero-tl,
.ww-intro-hero-tr {
	width: clamp(16rem, 30vw, 34rem);
}

.ww-intro-hero-bl,
.ww-intro-hero-br {
	width: clamp(11rem, 18vw, 20rem);
}

.ww-intro-hero-tr img,
.ww-intro-hero-br img {
	transform: scaleX(-1);
}

.ww-intro-logo {
	position: absolute;
	z-index: 7;
	left: 50%;
	top: 33%;
	width: min(30rem, 56vw, 56dvh);
	max-height: 56dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.02) rotate(-1080deg);
	will-change: transform, opacity, filter;
}

.ww-intro-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 56dvh;
	object-fit: contain;
	mix-blend-mode: screen;
}

.ww-intro-video {
	position: absolute;
	inset: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
	opacity: 0;
	pointer-events: none;
	filter: brightness(1.18) saturate(1.2) contrast(1.05);
	transition: opacity 0.3s ease;
}

.ww-hero-intro.is-exploding .ww-intro-video {
	opacity: 1;
}

.ww-intro-blast {
	position: absolute;
	inset: -18%;
	z-index: 6;
	opacity: 0;
	pointer-events: none;
	transform: scale(0.1);
	background: radial-gradient(
		circle at 50% 56%,
		#ffffff 0 8%,
		#fffbd0 17%,
		rgba(255, 218, 73, 0.98) 34%,
		rgba(255, 117, 13, 0.9) 52%,
		rgba(164, 31, 0, 0.45) 69%,
		transparent 80%
	);
	mix-blend-mode: screen;
}

.ww-hero-intro.is-gold-peak .ww-intro-blast {
	animation: ww-gold-screen 2.4s cubic-bezier(0.1, 0.7, 0.14, 1) both;
}

.ww-skip-intro {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 10;
	padding: 8px 16px;
	border: 1px solid rgba(196, 240, 255, 0.3);
	border-radius: 999px;
	background: rgba(1, 8, 20, 0.45);
	color: rgba(235, 250, 255, 0.8);
	font-family: var(--ww-font-hero-body);
	font-size: 13px;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ww-skip-intro:hover,
.ww-skip-intro:focus-visible {
	color: var(--ww-white);
	border-color: var(--ww-hero-cyan);
}

/* ==========================================================================
   Hero Keyframes
   ========================================================================== */

@keyframes ww-hero-weather {
	0% {
		transform: scale(1.05) translate3d(0, 0, 0);
		filter: brightness(1.48) saturate(1.34) contrast(1.02);
	}
	35% {
		filter: brightness(1.62) saturate(1.42) contrast(1.01);
	}
	36% {
		filter: brightness(1.92) saturate(1.18) contrast(1.04);
	}
	37% {
		filter: brightness(1.56) saturate(1.38) contrast(1.02);
	}
	100% {
		transform: scale(1.12) translate3d(-1.5%, -1%, 0);
		filter: brightness(1.7) saturate(1.45) contrast(1.01);
	}
}

@keyframes ww-hero-pulse {
	to {
		transform: scale(1.15);
		opacity: 0.66;
	}
}

@keyframes ww-strike-left {
	0%, 8%, 10%, 43%, 45%, 100% { opacity: 0; }
	8.25% { opacity: 0.82; }
	8.55% { opacity: 0.08; }
	8.84% { opacity: 0.68; }
	43.25% { opacity: 0.62; }
	43.55% { opacity: 0.05; }
	43.86% { opacity: 0.42; }
}

@keyframes ww-strike-right {
	0%, 27%, 29%, 72%, 74%, 100% { opacity: 0; }
	27.28% { opacity: 0.82; }
	27.58% { opacity: 0.07; }
	27.9% { opacity: 0.65; }
	72.28% { opacity: 0.74; }
	72.58% { opacity: 0.06; }
	72.9% { opacity: 0.5; }
}

@keyframes ww-spotlight-one {
	from { transform: rotate(-28deg) translateX(-6vw); }
	to { transform: rotate(25deg) translateX(8vw); }
}

@keyframes ww-spotlight-two {
	from { transform: rotate(21deg) translateX(-4vw); }
	to { transform: rotate(-20deg) translateX(7vw); }
}

@keyframes ww-spotlight-three {
	from { transform: rotate(-18deg) translateX(-5vw); }
	to { transform: rotate(24deg) translateX(5vw); }
}

@keyframes ww-spotlight-four {
	from { transform: rotate(27deg) translateX(6vw); }
	to { transform: rotate(-24deg) translateX(-8vw); }
}

@keyframes ww-opening-sky {
	to {
		transform: translate3d(-1.5%, -1%, 0) scale(1.08);
		filter: brightness(1.38) saturate(1.35) contrast(1.04);
	}
}

@keyframes ww-opening-electric {
	0%, 10%, 12%, 45%, 47%, 74%, 76%, 100% {
		filter: brightness(1.28) saturate(1.3) contrast(1.03);
	}
	10.35%, 45.35%, 74.35% {
		filter: brightness(1.58) saturate(1.1) contrast(1.08);
	}
}

@keyframes ww-gold-screen {
	0% { opacity: 0; transform: scale(0.1); filter: blur(12px); }
	14% { opacity: 0.88; }
	64% { opacity: 1; transform: scale(2.5); filter: blur(1px); }
	100% { opacity: 0.96; transform: scale(3.6); filter: blur(0); }
}

/* ==========================================================================
   Responsive Hero — Mobile (390px target)
   ========================================================================== */

@media (max-width: 960px) {
	.ww-hero {
		height: auto;
		min-height: 780px;
	}

	.ww-hero-grid-wrap {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ww-hero-showcase {
		max-width: 260px;
		margin: 0 auto;
		padding: 14px;
	}

	.ww-audio-player {
		top: 22px;
		left: auto;
		right: 16px;
		width: 158px;
		height: 48px;
		font-size: 14px;
	}

	.ww-hero-stage {
		padding: 120px 26px 96px;
	}

	.ww-hero-eyebrow {
		font-size: 20px;
		letter-spacing: 0.06em;
		margin-bottom: 14px;
	}

	.ww-hero-title {
		font-size: 64px;
		line-height: 0.84;
		margin-bottom: 18px;
	}

	.ww-hero-copy {
		padding: 13px 16px;
		font-size: 17px;
		font-weight: 700;
		line-height: 1.55;
	}

	.ww-intro-logo {
		top: 35%;
		width: min(22rem, 72vw, 52dvh);
		max-height: 52dvh;
	}

	.ww-intro-logo img {
		max-height: 52dvh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ww-hero-intro {
		display: none;
	}

	.ww-hero-stage::before,
	.ww-hero-light,
	.ww-hero-lightning,
	.ww-hero-spotlight {
		animation: none;
	}
}
