/* UVG Group portal
   Same palette as the main site: teal, deep teal, mint, sand, paper.
   Pages: group.php, entertainment-coming-soon.php
*/

:root {
	--night: #eef6f8;
	--ink: #0c4652;
	--muted: #106579;
	--gold: #106579;
	--consult: #8ee0d2;
	--stage: #f3d7b0;
	--line: rgba(16, 101, 121, 0.18);
	--radius: 24px;
	--pad: clamp(16px, 2.4vw, 40px);
	--ease: cubic-bezier(0.22, 0.8, 0.24, 1);
	--font-display: "UVG Amp", "Playfair Display", Georgia, serif;
	--font-body: Poppins, "Segoe UI", system-ui, sans-serif;
	--px: 0px;
	--py: 0px;
}

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

html {
	background: var(--night);
	color-scheme: light;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}

body.gate {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	background: var(--night);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
}

::selection {
	background: rgba(16, 101, 121, 0.18);
	color: var(--ink);
}

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

.gate :focus:not(:focus-visible) {
	outline: none;
}

.skip {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 5;
	padding: 8px 12px;
	background: #106579;
	color: #fff;
	border-radius: 8px;
}

.skip:focus {
	top: 12px;
}

/* Atmosphere */

.atmosphere,
.grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.atmosphere {
	z-index: 0;
	overflow: hidden;
}

.atmosphere__drift {
	position: absolute;
	inset: -18%;
	background:
		radial-gradient(38% 46% at 16% 42%, rgba(142, 224, 210, 0.55), transparent 70%),
		radial-gradient(40% 50% at 84% 46%, rgba(16, 101, 121, 0.16), transparent 70%),
		radial-gradient(28% 36% at 50% 110%, rgba(243, 215, 176, 0.45), transparent 72%);
	animation: drift 32s var(--ease) infinite alternate;
}

.atmosphere__drift--warm {
	background:
		radial-gradient(42% 50% at 50% 18%, rgba(142, 224, 210, 0.5), transparent 68%),
		radial-gradient(46% 56% at 70% 80%, rgba(16, 101, 121, 0.14), transparent 72%),
		radial-gradient(30% 40% at 18% 70%, rgba(243, 215, 176, 0.4), transparent 70%);
}

.grain {
	display: none;
	z-index: 2;
	opacity: 0.09;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/></svg>");
}

.stage {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

/* Top bar */

.topbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: calc(10px + env(safe-area-inset-top)) var(--pad) 8px;
}

.brand {
	grid-column: 2;
	justify-self: center;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 44px;
}

.brand__mark {
	display: block;
	height: clamp(54px, 9vw, 80px);
	width: auto;
	max-width: min(240px, 68vw);
	object-fit: contain;
}

.wordmark {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	color: var(--ink);
}

.topbar__link {
	grid-column: 3;
	justify-self: end;
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: color 0.35s var(--ease), background-size 0.35s var(--ease);
}

.topbar__link:hover {
	color: var(--gold);
	background-size: 100% 1px;
}

/* Intro */

.stage__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 4px var(--pad) 8px;
}

.intro {
	text-align: center;
	padding: 8px 0 clamp(14px, 2vh, 22px);
	animation: enter 0.55s var(--ease) both;
}

.intro h1 {
	margin: 0 auto;
	max-width: 12em;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(2rem, 4.8vw, 4.5rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.intro p {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Portals — stacked on small screens */

.portals {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
}

.portal {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: none;
	min-height: 42vh;
	min-height: 42svh;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	background: #fff;
	box-shadow: 0 18px 40px rgba(12, 70, 82, 0.08);
	cursor: pointer;
	animation: enter 0.6s var(--ease) both;
}

.portal:focus-visible {
	outline-offset: -3px;
}

.portal--consult {
	animation-delay: 0.1s;
	box-shadow:
		inset 4px 0 0 #8ee0d2,
		0 18px 40px rgba(12, 70, 82, 0.08);
}

.portal--entertain {
	animation-delay: 0.2s;
	box-shadow:
		inset 4px 0 0 #e4c48a,
		0 18px 40px rgba(12, 70, 82, 0.08);
}

.portal__scene {
	position: relative;
	z-index: 1;
	flex: 1 1 180px;
	min-height: 168px;
	overflow: hidden;
	pointer-events: none;
}

.portal__scene::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42px;
	background: linear-gradient(transparent, #fff);
}

.portal--consult .portal__scene {
	background:
		radial-gradient(70% 90% at 28% 55%, rgba(142, 224, 210, 0.55), transparent 72%),
		linear-gradient(180deg, #e4f6f2 0%, #f7fcfb 100%);
}

.portal--entertain .portal__scene {
	background:
		radial-gradient(80% 70% at 50% 0%, rgba(243, 215, 176, 0.85), transparent 62%),
		linear-gradient(180deg, #f7efe4 0%, #fbf8f4 100%);
}

.portal__shape {
	display: block;
	width: 100%;
	height: 100%;
	transform: translate3d(var(--px), var(--py), 0);
	transition: transform 0.7s var(--ease);
}

.portal__veil {
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: inherit;
	pointer-events: none;
	background: rgba(238, 246, 248, 0.62);
	opacity: 0;
	transition: opacity 0.65s var(--ease);
}

.badge {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	padding: 6px 11px 6px 9px;
	border: 1px solid rgba(16, 101, 121, 0.35);
	border-radius: 999px;
	background: rgba(142, 224, 210, 0.35);
	color: var(--ink);
	font-size: 0.78rem;
	font-weight: 600;
}

.portal--entertain .badge {
	background: rgba(243, 215, 176, 0.72);
	border-color: rgba(168, 124, 62, 0.35);
}

.badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 8px var(--gold);
}

.portal__body {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 0;
	max-width: none;
	padding: 4px 22px 22px;
}

.portal__logo {
	position: relative;
	z-index: 3;
	display: block;
	width: min(100%, 240px);
	height: auto;
}

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

.portal__tag {
	margin: 8px 0 0;
	max-width: 32ch;
	color: var(--muted);
	font-size: 0.98rem;
}

.cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin-top: 14px;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--ink);
}

.cta__label {
	padding-bottom: 2px;
}

.portal--consult .cta__label,
.portal--entertain .cta__label {
	box-shadow: inset 0 -1px 0 #106579;
}

.cta__icon {
	flex: none;
	transition: transform 0.45s var(--ease);
}

.seam {
	flex: 0 0 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.seam::before {
	content: "";
	width: 28%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Footer */

.foot {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	gap: 6px 18px;
	padding: 12px var(--pad) calc(16px + env(safe-area-inset-bottom));
	color: var(--muted);
	font-size: 0.875rem;
	text-align: center;
}

.foot p {
	margin: 0;
}

.foot__note {
	overflow-wrap: break-word;
}

.foot__nav {
	display: flex;
	gap: 18px;
}

.foot a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
}

.foot a:hover {
	color: var(--gold);
}

/* Coming soon */

.soon {
	position: relative;
	flex: 1;
	display: grid;
	place-items: center;
	padding: 12px var(--pad) 28px;
}

.soon__beams {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	background:
		linear-gradient(108deg, transparent 0 32%, rgba(142, 224, 210, 0.45) 40%, transparent 48%),
		linear-gradient(108deg, transparent 0 48%, rgba(16, 101, 121, 0.12) 56%, transparent 66%),
		linear-gradient(108deg, transparent 0 62%, rgba(243, 215, 176, 0.35) 68%, transparent 76%);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.soon__card {
	position: relative;
	width: min(100%, 460px);
	text-align: center;
	animation: enter 0.6s var(--ease) both;
}

.soon__logo {
	display: block;
	width: min(100%, 420px);
	height: auto;
	margin: 0 auto;
}

.soon h1 {
	margin: 10px 0 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(3.2rem, 8vw, 5.4rem);
	line-height: 0.92;
	letter-spacing: -0.03em;
}

.soon h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 1px;
	margin: 18px auto 0;
	background: var(--gold);
}

.soon__lead {
	margin: 16px 0 0;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	color: var(--ink);
}

.soon__invite {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.notify {
	margin-top: 22px;
	text-align: left;
}

.notify__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted);
}

.notify__row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.notify__input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-size: 16px;
}

.notify__input::placeholder {
	color: rgba(213, 221, 232, 0.6);
}

.notify__input:-webkit-autofill {
	-webkit-text-fill-color: var(--ink);
	box-shadow: 0 0 0 1000px #fff inset;
	caret-color: var(--ink);
}

.notify__input[aria-invalid="true"] {
	border-color: #e7a0a0;
}

.notify__button {
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid #106579;
	border-radius: 12px;
	background: #106579;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s var(--ease);
}

.notify__button:hover {
	background: #0c4652;
	border-color: #0c4652;
}

.notify__button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.form-note {
	margin: 18px 0 0;
	font-size: 0.95rem;
}

.form-note.is-ok {
	color: #0c4652;
	font-weight: 600;
}

.form-note.is-error {
	color: #8f2d3c;
	font-weight: 600;
}

.soon__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 26px 0 0;
}

.soon__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--muted);
	font-weight: 500;
}

.soon__links a:hover {
	color: var(--gold);
}

.soon__back svg {
	transition: transform 0.45s var(--ease);
}

.soon__back:hover svg,
.soon__back:focus-visible svg {
	transform: translateX(-5px);
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Tablet: the two portals share the width */

@media (min-width: 768px) {
	.portals {
		flex-direction: row;
		align-items: stretch;
	}

	.portal {
		flex: 1 1 0;
		min-height: 280px;
	}

	.portal__body {
		padding: 4px 26px 24px;
	}

	.seam {
		flex-basis: 16px;
	}

	.seam::before {
		width: 1px;
		height: 72%;
		background: linear-gradient(transparent, var(--gold), transparent);
		box-shadow: 0 0 10px rgba(228, 201, 138, 0.45);
	}

	.notify__row {
		flex-direction: row;
		align-items: stretch;
	}

	.notify__input {
		flex: 1;
	}

	.notify__button {
		flex: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.intro h1 {
		font-size: clamp(2.3rem, 4.2vw, 3.3rem);
	}

	.portal__title {
		font-size: clamp(1.55rem, 2.4vw, 2rem);
	}

	.foot {
		padding-top: 8px;
	}
}

@media (min-width: 1100px) {
	.foot {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
		align-items: center;
		text-align: left;
		justify-items: stretch;
	}

	.foot__note {
		text-align: center;
	}

	.foot__nav {
		justify-self: end;
	}
}

/* Desktop: one viewport, panels grow on hover */

@media (min-width: 1024px) and (min-height: 640px) {
	body.gate:not(.gate--soon) .stage {
		height: 100vh;
		height: 100svh;
		height: 100dvh;
	}

	body.gate:not(.gate--soon) {
		overflow: hidden;
	}

	.portal {
		min-height: 0;
	}

}

@media (min-width: 1024px) and (max-height: 760px) {
	.intro {
		padding-bottom: 8px;
	}

	.intro h1 {
		font-size: 2.5rem;
	}

	.topbar {
		min-height: 56px;
	}

	.brand__mark {
		height: 60px;
	}
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
	.portal {
		flex-grow: 1;
		transition: flex-grow 0.65s var(--ease), box-shadow 0.65s var(--ease);
	}

	.portal:hover,
	.portal:focus-visible {
		flex-grow: 1.25;
	}

	.portal--consult:hover,
	.portal--consult:focus-visible {
		box-shadow:
			inset 4px 0 0 #8ee0d2,
			0 0 0 1px rgba(16, 101, 121, 0.45),
			0 24px 50px rgba(16, 101, 121, 0.16);
	}

	.portal--entertain:hover,
	.portal--entertain:focus-visible {
		box-shadow:
			inset 4px 0 0 #e4c48a,
			0 0 0 1px rgba(16, 101, 121, 0.35),
			0 24px 50px rgba(12, 70, 82, 0.12);
	}

	.portals:has(.portal:hover) .portal:not(:hover) .portal__veil,
	.portals:has(.portal:focus-visible) .portal:not(:focus-visible) .portal__veil {
		opacity: 1;
	}

	.portal:hover .cta__icon,
	.portal:focus-visible .cta__icon {
		transform: translateX(7px);
	}

	.portal:hover .portal__shape,
	.portal:focus-visible .portal__shape {
		transform: translate3d(var(--px), var(--py), 0) scale(1.06);
	}
}

@media (pointer: coarse) {
	.portal:active {
		transform: scale(0.988);
	}
}

@media (max-height: 520px) {
	body.gate {
		overflow: auto;
	}

	.stage {
		height: auto;
	}

	.portal {
		min-height: 220px;
	}
}

@media (max-height: 760px) {
	.portal__scene {
		min-height: 120px;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.portal--consult .portal__scene,
	.portal--entertain .portal__scene {
		background: #f4fafb;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gate *,
	.gate *::before,
	.gate *::after {
		animation: none !important;
		transition: none !important;
	}
}

@keyframes enter {
	from {
		opacity: 0;
		translate: 0 16px;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes drift {
	from {
		transform: translate3d(-2%, -1%, 0) scale(1);
	}
	to {
		transform: translate3d(2.5%, 1.5%, 0) scale(1.06);
	}
}
