﻿/*========================================
  YETFLEX — Coming Soon
  Logo + countdown over a poster wall
========================================*/

:root {
	--bg: #08080b;
	--ink: #ffffff;
	--amber: #f9a500;
	--amber-2: #ffb633;
	--pad: clamp(18px, 4vw, 44px);
	--ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100%;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--ink);
	font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgba(249, 165, 0, 0.9);
	color: #17130a;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: 2px solid var(--amber-2);
	outline-offset: 4px;
}

/*========================================
  Poster wall
========================================*/

.posters {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
	overflow: hidden;
	background: var(--bg);
	pointer-events: none;
}

.posters__col {
	overflow: hidden;
}

.posters__track {
	display: flex;
	flex-direction: column;
	gap: 6px;
	animation: posterScroll 95s linear infinite;
	will-change: transform;
}

.posters__col:nth-child(2) .posters__track {
	animation-duration: 118s;
	animation-direction: reverse;
}

.posters__col:nth-child(3) .posters__track {
	animation-duration: 105s;
	animation-delay: -18s;
}

.posters__col:nth-child(4) .posters__track {
	animation-duration: 126s;
	animation-direction: reverse;
	animation-delay: -30s;
}

.posters__col:nth-child(5) .posters__track {
	animation-duration: 100s;
	animation-delay: -8s;
}

.posters__col:nth-child(6) .posters__track {
	animation-duration: 122s;
	animation-direction: reverse;
	animation-delay: -45s;
}

.posters__set {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 6px;
}

.posters img {
	display: block;
	width: 100%;
	height: auto;
	filter: saturate(0.95) brightness(0.78);
}

@keyframes posterScroll {
	to {
		transform: translateY(-50%);
	}
}

/*========================================
  Atmosphere
========================================*/

.veil {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 55% at 50% 48%, rgba(8, 8, 12, 0.74) 0%, rgba(8, 8, 12, 0.55) 45%, rgba(8, 8, 12, 0.32) 74%, rgba(8, 8, 12, 0.6) 100%),
		linear-gradient(180deg, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.18) 24%, rgba(8, 8, 12, 0.14) 68%, rgba(8, 8, 12, 0.88) 100%);
}

.glow {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: min(780px, 82vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(249, 165, 0, 0.17), transparent 65%);
	filter: blur(58px);
	pointer-events: none;
	transform: translate(-50%, -50%);
	animation: breathe 9s ease-in-out infinite alternate;
}

.grain {
	position: fixed;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
	background-size: 160px 160px;
}

@keyframes breathe {
	from {
		opacity: 0.55;
		transform: translate(-50%, -50%) scale(0.94);
	}
	to {
		opacity: 0.9;
		transform: translate(-50%, -50%) scale(1.08);
	}
}

/*========================================
  Logo + countdown
========================================*/

.stage {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(92px, 14vh, 150px) var(--pad) clamp(44px, 9vh, 90px);
}

.brand {
	position: absolute;
	top: clamp(26px, 5.2vh, 56px);
	left: 50%;
	z-index: 1;
	transform: translateX(-50%);
	animation: fade 1s both;
}

.brand img {
	display: block;
	width: auto;
	height: clamp(34px, 4vw, 56px);
	filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

.countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(7px, 1.4vw, 14px);
	width: min(760px, 100%);
	animation: rise 1s 0.1s both var(--ease);
}

.count {
	position: relative;
	overflow: hidden;
	padding: clamp(18px, 2.6vw, 28px) clamp(4px, 1.2vw, 16px) clamp(12px, 1.7vw, 18px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: clamp(14px, 1.6vw, 20px);
	background: linear-gradient(180deg, rgba(20, 20, 27, 0.86), rgba(8, 8, 12, 0.72));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	text-align: center;
	backdrop-filter: blur(20px) saturate(1.15);
	-webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.count::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(249, 165, 0, 0.7), transparent);
}

.count__num {
	display: block;
	font-size: clamp(2.4rem, 5.2vw, 4.2rem);
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1;
	text-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
}

.count__label {
	display: block;
	margin-top: clamp(8px, 1.2vw, 12px);
	color: rgba(255, 255, 255, 0.62);
	font-size: clamp(8px, 0.72vw, 10px);
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.2;
	text-transform: uppercase;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/*========================================
  Responsive
========================================*/

@media (max-width: 900px) {
	.posters {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.posters__col:nth-child(5),
	.posters__col:nth-child(6) {
		display: none;
	}
}

@media (max-width: 540px) {
	.posters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.posters__col:nth-child(4) {
		display: none;
	}

	.veil {
		background:
			radial-gradient(ellipse 82% 46% at 50% 50%, rgba(8, 8, 12, 0.72) 0%, rgba(8, 8, 12, 0.5) 62%, rgba(8, 8, 12, 0.5) 100%),
			linear-gradient(180deg, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.2) 25%, rgba(8, 8, 12, 0.2) 70%, rgba(8, 8, 12, 0.9) 100%);
	}

	.stage {
		padding-top: 86px;
	}

	.countdown {
		gap: 6px;
	}

	.count {
		padding: 16px 3px 11px;
	}

	.count__num {
		font-size: clamp(2rem, 9.8vw, 2.7rem);
	}

	.count__label {
		margin-top: 7px;
		font-size: 8.5px;
		letter-spacing: 0.12em;
	}
}

@media (max-width: 360px) {
	.count__num {
		font-size: 1.8rem;
	}

	.count__label {
		font-size: 8px;
		letter-spacing: 0.06em;
	}
}

@media (max-height: 520px) {
	.stage {
		padding-block: 72px 24px;
	}

	.brand img {
		height: 28px;
	}

	.count {
		padding-block: 12px 9px;
	}

	.count__num {
		font-size: clamp(1.6rem, 4.4vh, 2.2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.posters__track {
		animation: none !important;
	}

	.glow,
	.brand,
	.countdown {
		animation: none !important;
	}
}
