@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--navy: #16243b;
	--brand: #597db0;
	--ice: #dce7f5;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html,
body {
	margin: 0;
	height: 100%;
}

body {
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: 100svh;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
	font-family: "Montserrat", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Pozadí – fotka s pomalým Ken Burns efektem */
.bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("alps.jpg") center 60% / cover no-repeat;
	transform-origin: 55% 40%;
	animation: kenburns 40s ease-in-out infinite alternate, reveal 2.4s var(--ease) both;
}

.bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 45%, rgba(22, 36, 59, .15) 0%, rgba(22, 36, 59, .55) 70%, rgba(10, 18, 32, .85) 100%),
		linear-gradient(180deg, rgba(22, 36, 59, .35) 0%, rgba(22, 36, 59, .1) 40%, rgba(22, 36, 59, .7) 100%);
}

@media (max-aspect-ratio: 4/5) {
	.bg::before {
		background-image: url("alps-mobile.jpg");
		background-position: center 40%;
	}
}

@keyframes kenburns {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.16) translate3d(-1.5%, 1%, 0); }
}

@keyframes reveal {
	from { opacity: 0; filter: blur(8px); }
	to   { opacity: 1; filter: blur(0); }
}

/* Jemně padající sníh */
.snow {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 140px 90px, rgba(255, 255, 255, .8) 50%, transparent 51%),
		radial-gradient(3px 3px at 90px 160px, rgba(255, 255, 255, .7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 200px 210px, #fff 50%, transparent 51%),
		radial-gradient(2.5px 2.5px at 260px 50px, rgba(255, 255, 255, .6) 50%, transparent 51%);
	background-size: 300px 300px;
	opacity: .55;
	animation: snow 22s linear infinite;
}

.snow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(3px 3px at 60px 120px, rgba(255, 255, 255, .9) 50%, transparent 51%),
		radial-gradient(4px 4px at 310px 260px, rgba(255, 255, 255, .6) 50%, transparent 51%),
		radial-gradient(2.5px 2.5px at 420px 40px, #fff 50%, transparent 51%);
	background-size: 480px 480px;
	filter: blur(1px);
	animation: snow-near 14s linear infinite;
}

@keyframes snow {
	from { background-position: 0 0; }
	to   { background-position: 300px 600px; }
}

@keyframes snow-near {
	from { background-position: 0 0; }
	to   { background-position: -480px 960px; }
}

/* Obsah */
.card {
	position: relative;
	align-self: center;
	justify-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(.9rem, 2.2vh, 1.4rem);
	padding: 2rem 1.5rem;
	text-align: center;
	text-shadow: 0 2px 24px rgba(10, 18, 32, .45);
}

.card::before {
	content: "";
	position: absolute;
	inset: -20% -30%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(14, 24, 41, .6), rgba(14, 24, 41, .3) 55%, transparent);
	pointer-events: none;
}

.card > * {
	margin: 0;
	animation: rise 1.4s var(--ease) both;
}

.logo {
	margin-bottom: clamp(.6rem, 2vh, 1.2rem);
	line-height: 0;
	animation-delay: .5s;
}

.logo img {
	width: clamp(240px, 46vw, 560px);
	height: auto;
	filter: drop-shadow(0 4px 30px rgba(10, 18, 32, .45));
}

.tagline {
	font-size: clamp(.78rem, 1.5vw, 1.05rem);
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--ice);
	animation-delay: .9s;
}

.divider {
	display: block;
	width: 72px;
	height: 1px;
	margin-block: clamp(.4rem, 1.5vh, 1rem);
	background: linear-gradient(90deg, transparent, #fff, transparent);
	animation: grow 1.2s var(--ease) 1.3s both;
}

.owner {
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 300;
	letter-spacing: .06em;
	animation-delay: 1.6s;
}

.mail {
	position: relative;
	padding-bottom: .25em;
	color: #fff;
	font-size: clamp(.95rem, 1.6vw, 1.15rem);
	font-weight: 500;
	letter-spacing: .08em;
	text-decoration: none;
	animation-delay: 1.8s;
}

.mail::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(.25);
	opacity: .6;
	transition: transform .5s var(--ease), opacity .5s var(--ease);
}

.mail:hover::after,
.mail:focus-visible::after {
	transform: scaleX(1);
	opacity: 1;
}

.mail:focus-visible {
	outline: 1px dashed rgba(255, 255, 255, .6);
	outline-offset: 6px;
}

@keyframes rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

@keyframes grow {
	from { opacity: 0; transform: scaleX(0); }
	to   { opacity: 1; transform: scaleX(1); }
}

/* Patička */
.footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	padding: 1rem 1.5rem;
	font-size: .7rem;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .55);
	animation: rise 1.4s var(--ease) 2.2s both;
}

.footer a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.footer a:hover {
	color: #fff;
}

@media (max-width: 600px) {
	.tagline {
		letter-spacing: .18em;
	}

	.tagline span {
		display: block;
	}

	.footer {
		justify-content: center;
		text-align: center;
	}
}

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

	.snow {
		display: none;
	}
}
