/* ==========================================================================
   T2G Coming Soon
   Tokens: Ink, Gunmetal, Concrete, Bone, White, Volt (dark backgrounds only)
   ========================================================================== */

/* Fonts (self-hosted, SIL OFL) ----------------------------------------- */
@font-face {
	font-family: "Saira Extra Condensed";
	src: url("../fonts/saira-extra-condensed-semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Saira Extra Condensed";
	src: url("../fonts/saira-extra-condensed-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Saira Extra Condensed";
	src: url("../fonts/saira-extra-condensed-black.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Saira";
	src: url("../fonts/saira-var.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* Tokens ---------------------------------------------------------------- */
:root {
	--ink: #0B0D10;
	--navy: #0F1821;
	--gunmetal: #2A2F36;
	--concrete: #9AA1AA;
	--bone: #F2F2F0;
	--white: #FFFFFF;
	--volt: #C6FF00;

	--f-display: "Saira Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f-body: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;

	--ease-out: cubic-bezier(.2, .8, .2, 1);
	--gutter: clamp(1rem, 5vw, 4rem);

	/* Seconds between badge flips. JS reads this value. */
	--t2g-interval: 5.5s;
}

/* Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--ink);
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	font-family: var(--f-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--white);
	background: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

:focus-visible {
	outline: 2px solid var(--volt);
	outline-offset: 3px;
}

::selection { background: var(--volt); color: var(--ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Page shell ------------------------------------------------------------ */
.cs {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(55% 65% at 74% 46%, rgba(30, 44, 58, .85) 0%, rgba(11, 13, 16, 0) 70%),
		radial-gradient(45% 45% at 0% 100%, rgba(198, 255, 0, .06) 0%, rgba(198, 255, 0, 0) 70%),
		var(--ink);
}

/* Gym-floor grid */
.cs__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 72px 72px;
	background-position: center center;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%);
}

/* Film grain */
.cs::after {
	content: "";
	position: absolute;
	inset: -50%;
	z-index: 10;
	pointer-events: none;
	opacity: .08;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: t2g-grain 1.2s steps(6) infinite;
}

/* Corner labels */
.cs__meta {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(1rem, 2.6vw, 1.75rem) var(--gutter);
	font-family: var(--f-display);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--concrete);
	animation: t2g-fade 1s var(--ease-out) .9s both;
}

.cs__status {
	display: inline-flex;
	align-items: center;
	gap: .65em;
}

.cs__ping {
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--volt);
	animation: t2g-ping 2s ease-out infinite;
}

/* Layout ---------------------------------------------------------------- */
.cs__inner {
	position: relative;
	z-index: 2;
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: clamp(4rem, 9vh, 6rem) var(--gutter) clamp(1.5rem, 4vh, 3rem);
}

/* Copy ------------------------------------------------------------------ */
.cs__eyebrow {
	display: flex;
	align-items: center;
	gap: .85rem;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(1rem, 1.35vw, 1.2rem);
	line-height: 1;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--bone);
}

.cs__eyebrow::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: var(--volt);
}

.cs__title {
	margin: .26em 0 .3em;
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(3.75rem, min(8.2vw, 12vh), 8.5rem);
	line-height: .84;
	letter-spacing: -.005em;
	text-transform: uppercase;
}

.cs__line {
	display: block;
	overflow: hidden;
	padding: .03em 0 .05em;
}

.cs__line > span {
	display: block;
	animation: t2g-rise 1s var(--ease-out) both;
	animation-delay: calc(.15s + var(--i, 0) * .1s);
}

.cs__line--outline > span {
	color: transparent;
	-webkit-text-stroke: clamp(1.5px, .16vw, 2.5px) var(--bone);
}

.cs__accent { color: var(--volt); }

.cs__lead {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(1.4rem, 2.1vw, 1.85rem);
	line-height: 1.1;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--white);
}

.cs__intro {
	max-width: 34rem;
	margin-top: .85rem;
	font-size: clamp(1rem, 1.1vw, 1.0625rem);
	color: var(--concrete);
}

.cs__intro p + p { margin-top: .75em; }

/* Line switcher */
.cs__lines {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	max-width: 34rem;
	margin-top: 1.5rem;
}

.line {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1rem 0 0;
	border: 0;
	border-top: 2px solid var(--gunmetal);
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.line__bar {
	position: absolute;
	top: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--volt);
	transform: scaleX(0);
	transform-origin: left center;
}

.line.is-active .line__bar { animation: t2g-fill var(--t2g-interval) linear forwards; }
html:not(.js) .line.is-active .line__bar,
.cs.is-paused .line.is-active .line__bar {
	animation: none;
	transform: none;
}

.line__name {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--concrete);
	transition: color .3s ease;
}

.line__desc {
	font-size: .875rem;
	line-height: 1.45;
	color: var(--concrete);
}

.line:hover .line__name,
.line.is-active .line__name { color: var(--white); }

/* Actions */
.cs__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1rem;
	margin-top: 1.5rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	min-height: 3rem;
	padding: .75rem 1.35rem;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .25s ease;
}

.btn .icon { width: 1.15rem; height: 1.15rem; }
.btn .icon--arrow-right { transition: transform .25s var(--ease-out); }
.btn:hover { background: var(--volt); }
.btn:hover .icon--arrow-right { transform: translateX(4px); }

.social {
	display: flex;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--gunmetal);
	border-radius: 50%;
	color: var(--bone);
	transition: color .25s ease, border-color .25s ease;
}

.social .icon { width: 1.25rem; height: 1.25rem; }
.social a:hover { color: var(--volt); border-color: var(--volt); }

/* Badge stage ----------------------------------------------------------- */
.stage {
	position: relative;
	display: grid;
	place-items: center;
	justify-self: center;
	width: min(100%, 37rem, 76vh);
	aspect-ratio: 1;
	animation: t2g-badge-in 1.3s var(--ease-out) .25s both;
}

.stage__glow {
	position: absolute;
	inset: 12%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(198, 255, 0, .34) 0%, rgba(198, 255, 0, .1) 42%, rgba(198, 255, 0, 0) 68%);
	filter: blur(28px);
	animation: t2g-breathe 6s ease-in-out infinite;
}

.stage__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--concrete);
	opacity: .6;
	overflow: visible;
	animation: t2g-spin 80s linear infinite;
}

.stage__ring text {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 21px;
	text-transform: uppercase;
	fill: currentColor;
}

.stage__ring .sep { fill: var(--volt); }

.stage__float {
	grid-area: 1 / 1;
	width: 72%;
	perspective: 1600px;
	animation: t2g-float 7s ease-in-out infinite;
}

.stage__tilt {
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
	transition: transform .6s var(--ease-out);
}

.coin {
	position: relative;
	aspect-ratio: 1200 / 1292;
	transform-style: preserve-3d;
	transition: transform 1.3s cubic-bezier(.65, 0, .25, 1);
	cursor: pointer;
}

.coin__face {
	position: absolute;
	inset: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.coin__face img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-user-drag: none;
	user-select: none;
}

.coin__face--back { transform: rotateY(180deg); }

.stage__pause {
	position: absolute;
	right: 3%;
	bottom: 3%;
	z-index: 2;
	display: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--gunmetal);
	border-radius: 50%;
	background: rgba(11, 13, 16, .7);
	color: var(--concrete);
	cursor: pointer;
	transition: color .25s ease, border-color .25s ease;
}

.js .stage__pause { display: grid; }
.stage__pause:hover { color: var(--volt); border-color: var(--volt); }
.stage__pause .icon { width: 1rem; height: 1rem; }
.stage__pause .icon--play,
.cs.is-paused .stage__pause .icon--pause { display: none; }
.cs.is-paused .stage__pause .icon--play { display: block; }

/* Ticker ---------------------------------------------------------------- */
.ticker {
	position: relative;
	z-index: 3;
	margin: 0 -1.5rem 1.5rem;
	overflow: hidden;
	background: var(--volt);
	color: var(--ink);
	transform: rotate(-1.25deg);
	box-shadow: 0 0 48px rgba(198, 255, 0, .16);
	animation: t2g-fade 1s var(--ease-out) 1s both;
}

.ticker__track {
	display: flex;
	width: max-content;
	animation: t2g-ticker 60s linear infinite;
}

.ticker__group {
	display: flex;
	flex-shrink: 0;
}

.ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
	padding: .8rem 0 .75rem 1.25rem;
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ticker__item .icon { width: 1.35em; height: 1.35em; }

/* Pause state (button) -------------------------------------------------- */
.cs.is-paused::after,
.cs.is-paused .cs__ping,
.cs.is-paused .stage__glow,
.cs.is-paused .stage__ring,
.cs.is-paused .stage__float,
.cs.is-paused .ticker__track { animation-play-state: paused; }

/* Load-in fade utility -------------------------------------------------- */
.fade {
	animation: t2g-fade-up .9s var(--ease-out) both;
	animation-delay: calc(.15s + var(--i, 0) * .1s);
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
	.cs__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
		padding-top: 4rem;
	}

	.stage {
		order: -1;
		width: min(78vw, 24rem);
	}

	.cs__title { font-size: clamp(3.75rem, 17vw, 7.5rem); }
	.cs__lines,
	.cs__intro { max-width: 36rem; }
}

@media (max-width: 480px) {
	.cs__meta { font-size: .75rem; letter-spacing: .12em; }
	.cs__lines { gap: 1rem; }
	.line__name { font-size: 1.3rem; }
}

@media (min-width: 961px) and (max-height: 820px) {
	.cs__intro { margin-top: .6rem; }
	.cs__lines,
	.cs__actions { margin-top: 1.1rem; }
}

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: .001ms !important;
	}

	.cs::after { animation: none !important; }
	.ticker__track { animation: none !important; }
	.stage__ring { animation: none !important; }
	.line.is-active .line__bar { transform: none; }
	.js .stage__pause { display: none; }
}

/* Keyframes ------------------------------------------------------------- */
@keyframes t2g-rise {
	from { transform: translateY(105%); }
	to { transform: none; }
}

@keyframes t2g-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@keyframes t2g-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes t2g-badge-in {
	from { opacity: 0; transform: scale(.86) rotate(-8deg); }
	to { opacity: 1; transform: none; }
}

@keyframes t2g-breathe {
	0%, 100% { opacity: .55; transform: scale(.94); }
	50% { opacity: 1; transform: scale(1.05); }
}

@keyframes t2g-spin {
	to { transform: rotate(1turn); }
}

@keyframes t2g-float {
	0%, 100% { transform: translateY(-6px); }
	50% { transform: translateY(6px); }
}

@keyframes t2g-fill {
	to { transform: scaleX(1); }
}

@keyframes t2g-ping {
	0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, .55); }
	80%, 100% { box-shadow: 0 0 0 .6rem rgba(198, 255, 0, 0); }
}

@keyframes t2g-ticker {
	to { transform: translateX(-50%); }
}

@keyframes t2g-grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-5%, 3%); }
	40% { transform: translate(4%, -6%); }
	60% { transform: translate(-3%, 7%); }
	80% { transform: translate(6%, 2%); }
	100% { transform: translate(-2%, -4%); }
}
