@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
	--void: #0a0714;
	--surface: #18102b;
	--surface-2: #211836;
	--primary: #9d4edd;
	--primary-bright: #c77dff;
	--edge: rgba(199, 125, 255, 0.28);
	--text: #f2ecfb;
	--muted: #a898c4;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	overflow: hidden;
}

body {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	margin: 0;
	background: var(--void);
	color: var(--text);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
}

/* ambient glow, one orchestrated pulse, no scroll effects */
body::before,
body::after {
	content: "";
	position: fixed;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	z-index: 0;
	animation: drift 14s ease-in-out infinite alternate;
}

body::before {
	width: 42vw;
	height: 42vw;
	background: radial-gradient(circle, rgba(157, 78, 221, 0.45), transparent 70%);
	top: -10vw;
	left: -8vw;
}

body::after {
	width: 34vw;
	height: 34vw;
	background: radial-gradient(circle, rgba(199, 125, 255, 0.32), transparent 70%);
	bottom: -12vw;
	right: -6vw;
	animation-delay: -6s;
}

@keyframes drift {
	from {
		transform: translate(0, 0) scale(1);
	}
	to {
		transform: translate(2vw, 3vw) scale(1.08);
	}
}

.flex-center {
	display: flex;
	justify-content: center;
}

.header-center {
	align-items: center;
	flex-direction: column;
	margin-top: 10%;
}

.left-margin {
	margin: 0px 16px;
}

/* redesign overrides: keep the original classes (and any JS hooks on
   them) intact, just change how they lay out inside the new panel */
.panel .logo-wrapper {
	justify-content: flex-start;
	align-items: center;
	flex-direction: row;
	margin-top: 0;
}

.panel .desc {
	justify-content: flex-start;
	margin: 0px;
}

#sj-frame {
	border: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--void);
	z-index: 9999;
}

/* --- main stage: one screen, two columns --- */
.stage {
	position: relative;
	z-index: 1;
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 4vw;
	padding: 0 6vw;
}

.panel {
	max-width: 620px;
}

.logo-wrapper {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 22px;
}

.logo {
	height: 56px;
	width: 56px;
	object-fit: contain;
	filter: drop-shadow(0 0 18px rgba(157, 78, 221, 0.55));
}

.logo-wrapper h1 {
	font-family: "Space Grotesk", "Roboto", sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3vw, 34px);
	margin: 0;
	color: var(--text);
	letter-spacing: -0.01em;
}

.desc p {
	max-width: 520px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 28px;
}

#sj-form {
	justify-content: flex-start;
}

#sj-address {
	background: var(--surface);
	font-family: inherit;
	font-size: 15px;
	padding: 0 22px;
	height: 54px;
	border: 1px solid var(--edge);
	color: var(--text);
	outline: none;
	width: 100%;
	max-width: 420px;
	border-radius: 999px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

#sj-address::placeholder {
	color: var(--muted);
}

#sj-address:focus {
	border-color: var(--primary-bright);
	box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
}

.desc:has(#sj-error, #sj-error-code) {
	margin-top: 16px;
}

#sj-error {
	color: #ff7a9c !important;
	white-space: pre-wrap;
	margin: 0;
	font-size: 14px;
}

#sj-error-code {
	font-size: 12px;
	color: var(--muted);
	font-family: "Courier New", Courier, monospace;
}

/* --- picture spots: staggered frames standing in for live browsing --- */
.gallery {
	position: relative;
	height: 62vh;
	max-height: 560px;
}

.frame {
	position: absolute;
	background: var(--surface);
	border: 1px solid var(--edge);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.frame::before {
	content: attr(data-label);
	position: absolute;
	top: 10px;
	left: 14px;
	font-size: 11px;
	color: var(--muted);
	font-family: "Space Grotesk", sans-serif;
}

.frame .art {
	position: absolute;
	inset: 0;
	background: var(--surface-2);
}

.frame .art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.frame.a {
	width: 62%;
	height: 58%;
	top: 0;
	right: 0;
}

.frame.a .art {
	background: linear-gradient(135deg, #3a1d63, #1a1230 70%);
}

.frame.b {
	width: 46%;
	height: 40%;
	bottom: 6%;
	left: 0;
	z-index: 1;
}

.frame.b .art {
	background: linear-gradient(160deg, #6a2fb0, #241a3d 75%);
}

.frame.c {
	width: 30%;
	height: 30%;
	bottom: -4%;
	right: 10%;
	z-index: 2;
}

.frame.c .art {
	background: linear-gradient(200deg, #c77dff, #3a1d63 80%);
}

footer {
	position: relative;
	z-index: 1;
	margin: 0 16px;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	line-height: 26px;
	margin-bottom: 14px;
}

footer > div {
	display: flex;
	justify-content: left;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

footer a,
footer span {
	margin: 0 15px 0 0;
	text-decoration: none;
	color: var(--muted);
	font-size: 13px;
}

footer a {
	cursor: pointer;
}

footer a:hover {
	color: var(--text);
	text-decoration: underline;
}

.credit {
	border-radius: 10px;
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--edge);
	color: var(--text);
	margin-bottom: 12px;
	background: var(--surface);
}

.credit label {
	margin-left: auto;
	margin-right: 15px;
	cursor: pointer;
}

.credit a,
.credit label {
	color: var(--primary-bright);
	text-decoration: underline;
	text-align: right;
}

.credit pre {
	display: none;
	width: 100%;
	color: var(--muted);
}

.credit label::after {
	content: "show license";
}

.credit input:checked + label::after {
	content: "hide license";
}

.credit input:checked ~ pre {
	display: block;
}

/* --- responsive: stack, still one screen, no scroll --- */
@media (max-width: 900px) {
	.stage {
		grid-template-columns: 1fr;
		padding: 0 6vw;
		gap: 2vh;
	}

	.gallery {
		display: none;
	}

	.logo {
		height: 44px;
		width: 44px;
	}

	.desc p {
		font-size: 13.5px;
		margin-bottom: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body::before,
	body::after {
		animation: none;
	}
}
