/* ============ SUMMONFALL — marketing site (Steam / desktop-oriented) ============
   Palette from the game's "System window" UI:
   bg #04080f→#0a1422 · cyan #46c8ff · teal #4fe3c1 · gold #e9b62c/#ffd166
   text #dcebf7 · dim #8aa0b8 · danger #ff5d6c                                     */

:root {
	--bg0: #04080f;
	--bg1: #0a1422;
	--panel: rgba(11, 24, 38, 0.72);
	--cyan: #46c8ff;
	--cyan-dim: rgba(70, 200, 255, 0.35);
	--teal: #4fe3c1;
	--gold: #e9b62c;
	--gold-hi: #ffd166;
	--text: #dcebf7;
	--dim: #8aa0b8;
	--maxw: 1240px;
	--font-display: "Cinzel", serif;
	--font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg0);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.au { color: var(--gold); }
/* in-page anchors clear the fixed nav instead of hiding under it */
.section, .hero, main[id] { scroll-margin-top: 64px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-block;
	padding: 12px 22px;
	border: 2px solid var(--gold);
	border-radius: 6px;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 0.95rem;
	color: var(--text);
	background: rgba(122, 79, 35, 0.35);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
	text-align: center;
	cursor: pointer;
	touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(233, 182, 44, 0.35); background: rgba(122, 79, 35, 0.6); }
.btn--gold { background: linear-gradient(180deg, #8a5c26, #6b4319); }
.btn--ghost { border-color: var(--cyan-dim); background: rgba(70, 200, 255, 0.07); }
.btn--ghost:hover { box-shadow: 0 6px 24px rgba(70, 200, 255, 0.25); background: rgba(70, 200, 255, 0.14); }
.btn--lg { padding: 15px 32px; font-size: 1.08rem; }
.btn--xl { padding: 18px 42px; font-size: 1.18rem; }

/* ---------- nav ---------- */
.nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; gap: 30px;
	padding: 16px clamp(24px, 4vw, 56px);
	background: rgba(4, 8, 15, 0);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-solid { background: rgba(4, 8, 15, 0.92); box-shadow: 0 1px 0 rgba(70, 200, 255, 0.15); backdrop-filter: blur(10px); }
.nav__brand { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.16em; font-size: 1.1rem; }
.nav__mark { color: var(--gold); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--dim); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; padding: 10px 20px; font-size: 0.88rem; }
.nav__links-cta { display: none; }   /* desktop uses .nav__cta; this one lives in the mobile menu */
.nav__burger { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 10px; touch-action: manipulation; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

/* ---------- hero (full-bleed cinematic) ---------- */
.hero {
	position: relative;
	min-height: 100vh;         /* fallback for browsers without svh */
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 120px clamp(24px, 8vw, 120px) 90px;
	overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__bg picture { display: contents; }   /* let the <img> position against .hero__bg */
.hero__bg img { object-position: center 35%; }
.hero__scrim {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(4, 8, 15, 0.9) 0%, rgba(4, 8, 15, 0.62) 45%, rgba(4, 8, 15, 0.25) 100%),
		linear-gradient(180deg, rgba(4, 8, 15, 0.5) 0%, rgba(4, 8, 15, 0.15) 40%, var(--bg0) 100%);
}
.hero__inner { max-width: 680px; }
.hero__kicker { color: var(--teal); letter-spacing: 0.3em; font-size: 0.82rem; font-weight: 700; text-shadow: 0 1px 10px rgba(0,0,0,0.8); }
.hero__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(3.4rem, 9vw, 6.6rem);
	letter-spacing: 0.06em;
	line-height: 1.02;
	margin: 12px 0 8px;
	text-shadow: 0 0 40px rgba(70, 200, 255, 0.35), 0 6px 22px rgba(0, 0, 0, 0.85);
}
.hero__vow { font-family: var(--font-display); color: var(--gold-hi); font-size: clamp(1.05rem, 2.2vw, 1.5rem); margin-bottom: 16px; text-shadow: 0 2px 14px rgba(0,0,0,0.85); }
.hero__vow em { font-style: normal; text-shadow: 0 0 18px rgba(255, 209, 102, 0.55); }
.hero__sub { color: var(--text); max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.18rem); margin-bottom: 30px; text-shadow: 0 2px 12px rgba(0,0,0,0.85); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; }
.hero__badges li {
	border: 1px solid var(--cyan-dim);
	background: rgba(11, 24, 38, 0.62);
	color: var(--text);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 0.82rem;
	font-weight: 600;
	backdrop-filter: blur(4px);
}
.hero__scroll {
	position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
	color: var(--cyan); font-size: 1.4rem; opacity: 0.7;
	animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- sections ---------- */
.section { padding: 100px clamp(24px, 6vw, 90px); max-width: calc(var(--maxw) + 180px); margin: 0 auto; }
.section--dark { max-width: none; background: linear-gradient(180deg, var(--bg0), var(--bg1) 50%, var(--bg0)); }
.section__title {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: center;
	margin-bottom: 12px;
}
.section__lede { text-align: center; color: var(--dim); max-width: 680px; margin: 0 auto 52px; font-size: 1.05rem; }

/* ---------- media viewer (Steam-style) ---------- */
.media__stage {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	border: 1px solid rgba(70, 200, 255, 0.2);
	border-radius: 10px;
	overflow: hidden;
	background: #060b13;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(70, 200, 255, 0.07);
}
.media__stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; cursor: zoom-in; }
.media__stage figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 30px 24px 16px;
	background: linear-gradient(180deg, transparent, rgba(2, 5, 10, 0.9));
	color: var(--text); font-size: 0.98rem; text-align: center;
	text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.media__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 46px; height: 62px;
	background: rgba(4, 8, 15, 0.6); border: 1px solid var(--cyan-dim);
	color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer;
	border-radius: 6px; transition: background 0.2s, transform 0.2s;
}
.media__nav:hover { background: rgba(70, 200, 255, 0.22); }
.media__nav--prev { left: 14px; }
.media__nav--next { right: 14px; }
.media__thumbs {
	display: flex; gap: 12px; overflow-x: auto; padding: 18px 4px 6px;
	max-width: 1100px; margin: 0 auto; scrollbar-width: thin;
	scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.media__thumb {
	flex: 0 0 auto; width: 150px; padding: 0; cursor: pointer;
	border: 2px solid transparent; border-radius: 6px; overflow: hidden;
	background: none; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
	scroll-snap-align: start; touch-action: manipulation;
}
.media__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media__thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.media__thumb.is-on { opacity: 1; border-color: var(--cyan); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--maxw); margin: 0 auto; }
.fcard {
	position: relative;
	background: var(--panel);
	border: 1px solid rgba(70, 200, 255, 0.16);
	border-radius: 8px;
	padding: 30px 26px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.fcard::before, .fcard::after {
	content: ""; position: absolute; width: 20px; height: 20px;
	border-color: var(--cyan); border-style: solid; opacity: 0.55; transition: opacity 0.2s;
}
.fcard::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.fcard::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.fcard:hover { transform: translateY(-4px); border-color: rgba(70, 200, 255, 0.4); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(70, 200, 255, 0.08); }
.fcard:hover::before, .fcard:hover::after { opacity: 1; }
.fcard__icon { font-size: 1.7rem; margin-bottom: 12px; }
.fcard h3 { font-size: 1.12rem; margin-bottom: 9px; letter-spacing: 0.02em; }
.fcard p { color: var(--dim); font-size: 0.95rem; }

/* ---------- world ---------- */
.world { position: relative; max-width: none; overflow: hidden; }
.world__bg {
	position: absolute; inset: 0; z-index: -1;
	background-image: url("../assets/town.webp"); background-size: cover; background-position: center 30%;
}
.world::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(58% 64% at 50% 48%, rgba(4, 8, 15, 0.86) 0%, rgba(4, 8, 15, 0.55) 70%, rgba(4, 8, 15, 0.4) 100%),
		linear-gradient(180deg, var(--bg0) 0%, rgba(4, 8, 15, 0.62) 22%, rgba(4, 8, 15, 0.62) 78%, var(--bg0) 100%);
}
.world__inner {
	max-width: 900px; margin: 0 auto; text-align: center;
	padding: 60px clamp(28px, 5vw, 80px);
	/* soft vignette — darkest behind the text, fading to nothing so the art stays visible */
	background: radial-gradient(ellipse 100% 100% at 50% 50%,
		rgba(4, 8, 15, 0.72) 0%,
		rgba(4, 8, 15, 0.55) 45%,
		rgba(4, 8, 15, 0.28) 68%,
		rgba(4, 8, 15, 0) 88%);
}
.world__kicker { color: var(--teal); letter-spacing: 0.3em; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.world__per { color: var(--gold-hi); letter-spacing: 0.28em; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.world__note strong { color: var(--gold-hi); font-weight: 600; }
.world .section__title { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6); }
.world__premise { color: #eef4fb; font-size: clamp(1rem, 1.5vw, 1.12rem); margin: 18px 0 34px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9); }
.world__facts { display: flex; justify-content: center; gap: clamp(20px, 5vw, 60px); list-style: none; margin-bottom: 30px; flex-wrap: wrap; }
.world__facts li { display: flex; flex-direction: column; align-items: center; }
.world__facts strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--gold-hi); text-shadow: 0 0 22px rgba(255, 209, 102, 0.35), 0 2px 10px rgba(0, 0, 0, 0.9); }
.world__facts span { color: #c2d2e4; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95); }
.world__note { color: #b7c7da; font-size: 0.95rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); max-width: 620px; margin: 0 auto; }

/* ---------- memorial ---------- */
.memorial__grid {
	display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 80px);
	align-items: center; max-width: var(--maxw); margin: 0 auto;
}
.memorial__copy .section__title { text-align: left; }
.memorial__copy p { color: var(--dim); margin-bottom: 16px; max-width: 500px; font-size: 1.02rem; }
.memorial__vow { font-family: var(--font-display); color: var(--gold-hi) !important; font-size: 1.2rem; }
.memorial__card { justify-self: center; width: min(360px, 80vw); }
.memorial__card img {
	border-radius: 10px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(241, 196, 15, 0.12);
	transform: rotate(-2deg); transition: transform 0.3s ease;
}
.memorial__card:hover img { transform: rotate(0deg) scale(1.02); }

/* ---------- get ---------- */
.get { text-align: center; }
.get__ctas { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 18px; }
.get__fine { color: var(--dim); font-size: 0.88rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(70, 200, 255, 0.12); padding: 38px 24px; text-align: center; }
.footer__brand { font-family: var(--font-display); letter-spacing: 0.14em; font-weight: 700; margin-bottom: 6px; }
.footer__line { color: var(--dim); font-size: 0.84rem; }

/* ---------- lightbox ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(2, 5, 10, 0.92);
	display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }  /* the hidden attr must beat display:flex above */
.lightbox img { max-height: 92vh; width: auto; max-width: 92vw; border-radius: 12px; box-shadow: 0 0 80px rgba(70, 200, 255, 0.2); }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; padding: 12px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__scroll { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.memorial__grid { grid-template-columns: 1fr; }
	.memorial__copy .section__title { text-align: center; }
	.memorial__copy p { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }
}
@media (max-width: 780px) {
	.nav { padding-top: max(14px, env(safe-area-inset-top)); }
	.nav__links, .nav__cta { display: none; }
	.nav__burger { display: block; }
	.nav.is-open .nav__links {
		display: flex; flex-direction: column; gap: 2px;
		position: absolute; top: 100%; left: 0; right: 0;
		background: rgba(4, 8, 15, 0.98); padding: 10px 20px 20px;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
		border-bottom: 1px solid rgba(70, 200, 255, 0.15);
		max-height: calc(100svh - 60px); overflow-y: auto;
	}
	/* full-width, finger-friendly rows */
	.nav.is-open .nav__links a:not(.btn) {
		padding: 14px 6px; font-size: 1.05rem; color: var(--text);
		border-bottom: 1px solid rgba(70, 200, 255, 0.09);
	}
	.nav.is-open .nav__links-cta { display: block; margin-top: 14px; padding: 14px; }
	.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
	.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.hero { padding-top: 100px; text-align: center; align-items: center; }
	.hero__bg img { object-position: center 26%; }
	.hero__inner { max-width: 640px; }
	/* the portrait key art already carries the ornate SUMMONFALL wordmark — hide the duplicate
	   text title (which also overflowed), but keep it in the DOM for SEO / screen readers */
	.hero__title {
		position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
	.hero__kicker { margin-bottom: 16px; }
	.hero__sub { margin-left: auto; margin-right: auto; }
	.hero__cta, .hero__badges { justify-content: center; }
	.hero__scrim { background: linear-gradient(180deg, rgba(4,8,15,0.5) 0%, rgba(4,8,15,0.38) 42%, var(--bg0) 100%); }
	.features { grid-template-columns: 1fr; max-width: 440px; }
	.media__nav { display: none; }
	.section { padding: 68px 20px; }
}
/* phones — tighten type, spacing, and stack CTAs full-width for easy tapping */
@media (max-width: 480px) {
	.hero { padding: 92px 20px 76px; }
	.hero__kicker { font-size: 0.7rem; letter-spacing: 0.2em; }
	.hero__vow { font-size: 1.12rem; }
	.hero__sub { font-size: 1.02rem; }
	.hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; gap: 12px; }
	.hero__cta .btn { width: 100%; }
	.hero__badges { gap: 8px; }
	.hero__badges li { font-size: 0.74rem; padding: 6px 12px; }
	.hero__scroll { display: none; }
	.btn--lg, .btn--xl { padding: 15px 24px; font-size: 1.05rem; }
	.section { padding: 56px 18px; }
	.section__lede { font-size: 0.98rem; margin-bottom: 38px; }
	.media__stage figcaption { font-size: 0.85rem; padding: 26px 14px 12px; }
	.media__thumb { width: 124px; }
	.fcard { padding: 24px 20px; }
	.world__facts { gap: 20px 34px; }
	.get__ctas { flex-direction: column; align-items: stretch; }
	.get__ctas .btn { width: 100%; }
	.footer { padding-bottom: max(38px, env(safe-area-inset-bottom)); }
}
