/*
 * Spirit Valhalla Early Access Landing — mobile-first.
 * Only transform/opacity are animated. Works without JavaScript.
 */

.svea-body {
	--void: #0a0a0c;
	--char: #121316;
	--iron: #1c1e22;
	--steel: #8e959e;
	--mist: #c9cdd2;
	--bone: #eef0f2;
	--red: #b3261e;
	--red-hi: #d4362c;
	--line: rgba(142, 149, 158, 0.22);
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--display: "Cinzel", "Cormorant Garamond", "Trajan Pro", Georgia, "Times New Roman", serif;
	--text: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;
	margin: 0;
	background: var(--void);
	color: var(--mist);
	font-family: var(--text);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

html.svea-doc {
	background: #0a0a0c;
	overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
	html.svea-doc { scroll-behavior: smooth; }
}

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

.svea-body [hidden] { display: none !important; }
.svea-body img, .svea-body video { max-width: 100%; }
.svea-body :focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
#svea-main:focus { outline: none; }

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

.svea-skip {
	position: absolute; z-index: 1000; left: -9999px; top: 0.75rem;
	padding: 0.7rem 1rem; background: var(--bone); color: var(--void); text-decoration: none;
}
.svea-skip:focus { left: 0.75rem; }

/* ---------- Top bar ---------- */
.svea-top {
	position: absolute; z-index: 20; inset: 0 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: calc(0.9rem + env(safe-area-inset-top, 0px)) var(--gutter) 1rem;
}
.admin-bar .svea-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .svea-top { top: 46px; } }
.svea-top__brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); text-decoration: none; }
.svea-top__logo { display: block; width: auto; height: 32px; max-width: 150px; object-fit: contain; }
.svea-top__name { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.18em; }
.svea-top__buy {
	display: inline-flex; align-items: center; min-height: 44px;
	color: var(--bone); font-size: 0.85rem; letter-spacing: 0.12em; text-decoration: none;
	border-bottom: 1px solid var(--red);
}

/* ---------- Generic ---------- */
.svea-sec { position: relative; padding-block: clamp(4.5rem, 12vh, 8rem); }
.svea-sec + .svea-sec { border-top: 1px solid rgba(142, 149, 158, 0.08); }
.svea-wrap { position: relative; width: min(100% - 2 * var(--gutter), 44rem); margin-inline: auto; }
.svea-wrap--wide { width: min(100% - 2 * var(--gutter), 72rem); }
.svea-center { text-align: center; }

.svea-h2 {
	margin: 0 0 1.3rem; color: var(--bone);
	font-family: var(--display); font-weight: 500;
	font-size: clamp(1.8rem, 5.5vw, 3rem); line-height: 1.08; letter-spacing: 0.06em;
	text-wrap: balance;
}

.svea-prose p { margin: 0 0 1.1em; font-size: clamp(1.05rem, 2.5vw, 1.2rem); }

.svea-badge {
	display: inline-flex; align-items: center; gap: 0.6rem;
	margin: 0 0 1.3rem; padding: 0.4rem 0.95rem;
	border: 1px solid rgba(179, 38, 30, 0.7); background: rgba(10, 10, 12, 0.45);
	color: #e8a59f; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.svea-badge::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }

.svea-admin-note { margin: 1rem auto; padding: 0.75rem 1rem; max-width: 44rem; border: 1px dashed var(--red); color: #e8a59f; font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.svea-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 0.85rem 1.7rem;
	border: 1px solid transparent; border-radius: 2px;
	font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.svea-btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.svea-btn--primary:focus-visible { outline-color: var(--bone); }
.svea-btn--lg { min-height: 56px; padding-inline: 2.2rem; font-size: 1rem; }
.svea-btn--sm { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.78rem; letter-spacing: 0.08em; white-space: nowrap; }
.svea-fx-hover-cta .svea-btn--primary { transition: background-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease; }
@media (hover: hover) {
	.svea-fx-hover-cta .svea-btn--primary:hover { background: var(--red-hi); border-color: var(--red-hi); transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(212, 54, 44, 0.65); }
}
.svea-unavailable { color: var(--steel); }

.svea-price { color: var(--bone); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.04em; }
.svea-price del, .svea-offer__price del, .svea-sticky__price del { color: var(--steel); font-size: 0.75em; margin-right: 0.35em; }
.svea-price ins, .svea-offer__price ins, .svea-sticky__price ins { text-decoration: none; }

/* ---------- Hero ---------- */
.svea-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: grid; align-content: end; justify-items: center; text-align: center;
	padding: calc(6rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(clamp(3.5rem, 10svh, 6rem) + env(safe-area-inset-bottom, 0px));
}
.svea-hero__media { position: absolute; inset: -4% 0; z-index: -2; }
.svea-hero__media picture { position: absolute; inset: 0; }
.svea-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svea-hero__video { opacity: 0; transition: opacity 1.4s ease; }
.svea-hero__video.is-playing { opacity: 1; }
.svea-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to bottom, rgba(10, 10, 12, 0.6) 0%, rgba(10, 10, 12, 0.1) 30%, rgba(10, 10, 12, 0.35) 55%, var(--void) 100%);
}
.svea-hero__content { position: relative; z-index: 2; max-width: 56rem; }
.svea-hero__title {
	margin: 0; color: var(--bone);
	font-family: var(--display); font-weight: 600;
	/* Scales with the title length so one word never breaks mid-word. */
	font-size: clamp(2rem, calc(min(86vw, 54rem) / (var(--svea-len, 8) * 0.92)), 7.5rem); line-height: 0.98; letter-spacing: 0.08em;
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
	overflow-wrap: break-word;
}
.svea-hero__sub { max-width: 34rem; margin: 1.3rem auto 0; font-size: clamp(1.05rem, 2.8vw, 1.3rem); }
.svea-hero__date { margin: 1rem 0 0; color: var(--bone); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; }
.svea-hero__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.4rem; margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
	.js .svea-hero__content > * { animation: svea-rise 1.4s var(--ease) both; }
	.js .svea-hero__content > :nth-child(2) { animation-delay: 0.15s; }
	.js .svea-hero__content > :nth-child(3) { animation-delay: 0.45s; }
	.js .svea-hero__content > :nth-child(n+4) { animation-delay: 0.7s; }
}
@keyframes svea-rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Atmosphere (CSS fog; particles drawn by JS) ---------- */
.svea-atmo { position: absolute; inset: auto 0 0; height: 65%; z-index: -1; pointer-events: none; overflow: hidden; }
.svea-atmo span {
	position: absolute; left: -50%; bottom: -10%; width: 200%; height: 100%;
	background:
		radial-gradient(ellipse 30% 40% at 20% 70%, rgba(170, 176, 186, 0.15), transparent 70%),
		radial-gradient(ellipse 28% 35% at 60% 80%, rgba(150, 156, 166, 0.12), transparent 70%),
		radial-gradient(ellipse 32% 40% at 88% 65%, rgba(170, 176, 186, 0.11), transparent 70%);
}
.svea-atmo span:last-child { bottom: 8%; opacity: 0.6; transform: scaleX(-1); }
.svea-atmo-particles .svea-atmo span { opacity: 0.45; }
.svea-atmo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
	.svea-atmo span:first-child { animation: svea-fog-a 70s linear infinite alternate; }
	.svea-atmo span:last-child { animation: svea-fog-b 95s linear infinite alternate; }
}
@keyframes svea-fog-a { to { transform: translate3d(20%, 0, 0); } }
@keyframes svea-fog-b { from { transform: scaleX(-1); } to { transform: scaleX(-1) translate3d(16%, 0, 0); } }
@media (max-width: 767px) {
	.svea-fx-mobile-lite .svea-atmo span:last-child { display: none; }
	.svea-fx-mobile-lite .svea-atmo span:first-child { animation-duration: 110s; }
}
.svea-paused .svea-atmo span { animation-play-state: paused !important; }

/* ---------- Parallax / reveal (enabled by JS only) ---------- */
[data-svea-depth] { translate: 0 var(--svea-y, 0px); }
.svea-reveal-on [data-svea-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.svea-reveal-on [data-svea-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Audio player ---------- */
.svea-player { display: grid; justify-items: center; margin-top: 1rem; }
.svea-player__native { width: 100%; max-width: 30rem; }
.svea-player__ui { display: flex; align-items: center; gap: 1.1rem; width: 100%; max-width: 30rem; }
.svea-player__btn {
	position: relative; flex: 0 0 auto; display: grid; place-items: center;
	width: 64px; height: 64px; padding: 0; border-radius: 50%;
	border: 1px solid rgba(201, 205, 210, 0.5); background: rgba(10, 10, 12, 0.5); color: var(--bone); cursor: pointer;
}
.svea-player__btn:hover { border-color: var(--red); }
.svea-player__btn svg { width: 24px; height: 24px; fill: currentColor; }
.svea-i-pause, .svea-player.is-playing .svea-i-play { display: none; }
.svea-player.is-playing .svea-i-pause { display: block; }
.svea-player.is-playing .svea-player__btn { border-color: var(--red); }
.svea-player__track { flex: 1 1 auto; display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.svea-player__time { flex: 0 0 auto; color: var(--steel); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.svea-player__seek {
	--pct: 0%; flex: 1 1 auto; width: 100%; height: 28px; margin: 0; background: transparent;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.svea-player__seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--red) var(--pct), rgba(201, 205, 210, 0.2) var(--pct)); }
.svea-player__seek::-moz-range-track { height: 2px; background: rgba(201, 205, 210, 0.2); }
.svea-player__seek::-moz-range-progress { height: 2px; background: var(--red); }
.svea-player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--bone); }
.svea-player__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--bone); }

/* ---------- What you get ---------- */
.svea-get__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svea-get__list li { position: relative; padding: 0.9rem 0 0.9rem 1.7rem; border-bottom: 1px solid var(--line); color: var(--bone); }
.svea-get__list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.45rem; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
@media (min-width: 720px) { .svea-get__list { columns: 2; column-gap: 3rem; border-top: 0; } .svea-get__list li { break-inside: avoid; } }

/* ---------- Gallery ---------- */
.svea-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 900px) { .svea-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; } }
.svea-grid__item a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--char); }
.svea-grid__item img, .svea-grid__item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.svea-fx-hover-img .svea-grid__item img, .svea-fx-hover-img .svea-grid__item video { transition: transform 0.8s var(--ease), filter 0.8s ease; }
@media (hover: hover) {
	.svea-fx-hover-img .svea-grid__item a:hover img, .svea-fx-hover-img .svea-grid__item a:hover video { transform: scale(1.04); filter: brightness(1.08); }
}
.svea-grid__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(10, 10, 12, 0.45); }
.svea-grid__play::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }

.svea-lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 6, 0.96); }
.svea-lightbox::backdrop { background: rgba(5, 5, 6, 0.9); }
.svea-lightbox__stage { position: absolute; inset: 3.5rem 1rem 1rem; display: grid; place-items: center; }
.svea-lightbox__stage img, .svea-lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.svea-lightbox__close { position: absolute; top: calc(0.6rem + env(safe-area-inset-top, 0px)); right: 0.8rem; width: 44px; height: 44px; border: 0; background: none; color: var(--bone); font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------- Offer / final ---------- */
.svea-offer__box { padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem); border: 1px solid var(--line); background: linear-gradient(180deg, var(--char), var(--void)); }
.svea-offer__box p { margin: 0 0 1rem; }
.svea-offer__price { color: var(--bone); font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; }
.svea-offer__box .svea-btn { margin-top: 1rem; }
.svea-tagline { margin-top: 1.4rem !important; color: var(--steel); font-style: italic; letter-spacing: 0.04em; }
.svea-final__title { margin: 0 0 1.8rem; color: var(--bone); font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 7vw, 4rem); line-height: 1.05; letter-spacing: 0.06em; text-wrap: balance; }

.svea-foot { padding: 2.5rem var(--gutter) calc(6rem + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--steel); font-size: 0.85rem; }
.svea-foot p { margin: 0; }
.svea-foot a { color: var(--mist); }

/* ---------- Sticky bar ---------- */
.svea-sticky {
	position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
	display: flex; align-items: center; gap: 0.8rem;
	padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
	background: rgba(14, 15, 18, 0.94); border-top: 1px solid var(--line);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.svea-sticky.is-on { transform: none; }
.svea-sticky__title { flex: 1 1 auto; min-width: 0; color: var(--bone); font-size: 0.85rem; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svea-sticky__price { flex: 0 0 auto; color: var(--bone); font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.svea-body *, .svea-body *::before, .svea-body *::after { animation: none !important; transition: none !important; }
	[data-svea-depth] { translate: none !important; }
	.svea-reveal-on [data-svea-reveal] { opacity: 1 !important; transform: none !important; }
	.svea-hero__video { display: none; }
}
