:root {
	--bg: #070c13;
	--bg2: #0c0a1b;
	--ink: #ece7f4;
	--muted: #9d97b3;
	--dim: #6c6684;
	--gold: #e3c27f;
	--gold-hi: #fff3d1;
	--gold-lo: #b9822c;
	--violet: #9975ff;
	--violet-hi: #c9b3ff;
	--teal: #63d6cf;
	--line: rgba(227, 194, 127, 0.16);
	--glass: rgba(18, 16, 36, 0.5);
	--serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
	--sans: 'Lexend', 'Segoe UI', system-ui, sans-serif;
	--r: 14px;
	--w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	color: var(--ink);
	font: 300 16px/1.6 var(--sans);
	background:
		radial-gradient(1200px 700px at 15% 110vh, rgba(99, 214, 207, 0.06), transparent 70%),
		radial-gradient(1000px 800px at 90% 180vh, rgba(153, 117, 255, 0.08), transparent 70%),
		linear-gradient(180deg, var(--bg) 0%, #0a0f1a 45%, var(--bg2) 100%);
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(153, 117, 255, 0.4); }

#motes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---------- nav */
.top {
	position: fixed; top: 0; left: 0; right: 0; z-index: 20;
	display: flex; align-items: center; gap: 28px;
	padding: 12px clamp(16px, 4vw, 40px);
	transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
	border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(7, 10, 18, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.mark { display: flex; align-items: center; gap: 10px; font: 600 19px var(--serif); letter-spacing: 0.06em; color: var(--gold); }
.mark img { width: 30px; height: 30px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 13.5px; color: var(--muted); }
.links a:hover { color: var(--gold-hi); }

/* ---------- buttons */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 12px 22px; border-radius: 999px;
	font: 400 14.5px var(--sans); letter-spacing: 0.01em; white-space: nowrap;
	border: 1px solid rgba(227, 194, 127, 0.35);
	background: rgba(14, 12, 28, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--gold); box-shadow: 0 0 22px rgba(227, 194, 127, 0.25); transform: translateY(-1px); }
.btn i { font-style: normal; color: var(--muted); font-size: 12.5px; }
.btn svg, .dl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.gold {
	color: #1b1407; font-weight: 500; border-color: transparent;
	background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, #d3a75a);
	box-shadow: 0 0 0 1px rgba(255, 243, 209, 0.3) inset, 0 6px 30px rgba(227, 194, 127, 0.35);
}
.btn.gold i { color: rgba(27, 20, 7, 0.6); }
.btn.gold:hover { box-shadow: 0 0 0 1px rgba(255, 243, 209, 0.5) inset, 0 8px 42px rgba(227, 194, 127, 0.55); }
.btn.small { padding: 8px 16px; font-size: 13px; }
.top .btn.small { margin-left: 4px; }

.dl.mini {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 999px;
	border: 1px solid transparent; transition: 0.2s;
}
.dl.mini:hover { color: var(--gold-hi); border-color: var(--line); background: rgba(227, 194, 127, 0.06); }

/* ---------- hero */
.hero { position: relative; min-height: min(100svh, calc(56vw + 380px)); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; padding: 84px 0 clamp(32px, 6svh, 64px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 70% 60% at 50% 46%, rgba(7, 12, 19, 0.55), rgba(7, 12, 19, 0.15) 70%),
		linear-gradient(180deg, rgba(7, 12, 19, 0.65) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
}
#trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-in { position: relative; z-index: 3; text-align: center; padding: 0 16px; width: 100%; max-width: 920px; }
h1 { margin: 0; }
.logo { width: clamp(200px, min(82vw, calc((100svh - 300px) * 1.41)), 600px); margin: 0 auto; filter: drop-shadow(0 0 30px rgba(153, 117, 255, 0.25)); }
.pitch { font: italic 500 clamp(20px, 2.3vw, 27px)/1.35 var(--serif); color: var(--gold-hi); margin: 4px auto clamp(16px, 3.5svh, 30px); max-width: 30ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.cta { display: flex; gap: 10px 12px; justify-content: center; flex-wrap: wrap; }
.inside { margin: clamp(12px, 2.5svh, 20px) 0 0; font-size: 13px; color: rgba(236, 231, 244, 0.62); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); text-wrap: balance; }
.inside a { transition: color 0.2s; white-space: nowrap; }
.inside a:hover { color: var(--gold-hi); }
.inside .sep { margin: 0 4px; color: var(--gold); opacity: 0.6; }

/* ---------- layout */
main { position: relative; z-index: 1; max-width: var(--w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
main > section { margin-top: clamp(72px, 10vw, 120px); }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- section headings */
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; margin-bottom: 30px; position: relative; }
.sec-h h2 {
	margin: 0; font: 600 clamp(34px, 4vw, 46px)/1 var(--serif); letter-spacing: 0.01em;
	background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 70%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-h .wand { position: absolute; left: -6px; top: 100%; width: 230px; height: 24px; overflow: visible; }
.wand .line {
	fill: none; stroke: url(#wandg); stroke-width: 2.2; stroke-linecap: round;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	filter: drop-shadow(0 0 3px rgba(227, 194, 127, 0.9)) drop-shadow(0 0 8px rgba(153, 117, 255, 0.6));
	transition: stroke-dashoffset 1.1s cubic-bezier(0.55, 0.1, 0.35, 1);
}
/* the star is the line's tip: same violet as the line's end, it pops in only once the line is done */
.wand .spark {
	fill: #efe6ff; opacity: 0;
	transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-45deg);
	filter: drop-shadow(0 0 2px #c9b3ff) drop-shadow(0 0 6px #9975ff);
	transition: opacity 0.15s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.sec-h.seen .wand .line { stroke-dashoffset: 0; }
.sec-h.done .wand .spark { opacity: 1; transform: scale(1) rotate(0deg); }
.sec-h .aside { color: var(--dim); font-size: 13px; padding-bottom: 6px; }
.sec-h > a.btn { margin-left: auto; }

/* ---------- trailer */
.player { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(153, 117, 255, 0.08); }
.player video, .player iframe { width: 100%; height: 100%; border: 0; }
.row-dl { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- about */
.about { display: flex; flex-wrap: wrap; overflow: hidden; }
.about-text { flex: 1.45 1 440px; padding: clamp(24px, 3.5vw, 40px); }
.about-text p { margin: 0 0 14px; color: #cfc9dc; max-width: 60ch; }
.about-text .lead { font: 500 26px/1.3 var(--serif); color: var(--gold-hi); }
.feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 26px; }
.feats li { position: relative; padding-left: 22px; font-size: 14.5px; }
.feats li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-hi), var(--violet)); box-shadow: 0 0 8px var(--gold); }
.facts { flex: 1 1 300px; margin: -1px 0 0 -1px; padding: clamp(18px, 3vw, 30px) clamp(22px, 3vw, 36px); border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--dim); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { margin: 0; text-align: right; font-weight: 400; }
.facts dd a, .policy a { color: var(--gold); }
.facts dd a:hover, .policy a:hover { color: var(--gold-hi); }
.todo { color: var(--dim); }

/* ---------- loops */
.loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.loop { margin: 0; }
.loop .open, .shot .open {
	display: block; width: 100%; border-radius: 12px; overflow: hidden; position: relative;
	border: 1px solid var(--line); background: #05070c;
	transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s;
}
.loop video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.loop .open:hover, .shot .open:hover { border-color: rgba(227, 194, 127, 0.6); box-shadow: 0 0 0 1px rgba(227, 194, 127, 0.15), 0 0 34px rgba(153, 117, 255, 0.22); transform: translateY(-2px); }
.loop figcaption, .art figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 0; }
.loop figcaption > span { font: 600 20px var(--serif); color: var(--gold-hi); }

/* ---------- screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.shot { margin: 0; position: relative; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s; }
.shot .open:hover img { transform: scale(1.04); }
.dl.ghost {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
	background: rgba(7, 10, 18, 0.7); border: 1px solid var(--line); color: var(--gold-hi);
	opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.dl.ghost span { display: none; }
.shot:hover .dl.ghost, .dl.ghost:focus-visible { opacity: 1; }
.dl.ghost:hover { background: rgba(227, 194, 127, 0.25); }

/* ---------- art */
.arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.art { margin: 0; }
.art.wide { grid-column: span 2; }
.art-img { height: 220px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 18px; }
.art.dark .art-img { background: radial-gradient(circle at 50% 45%, #1b1736, #07080f 75%); }
.art.img .art-img { padding: 10px; background: radial-gradient(circle at 50% 45%, #141a2c, #05070c 80%); }
.art-img img { max-width: 100%; max-height: 196px; width: auto; height: auto; }
.art.img .art-img img { border-radius: 4px; }
.art figcaption > span { font-size: 14px; display: flex; flex-direction: column; line-height: 1.35; }
.art figcaption i { font-style: normal; color: var(--dim); font-size: 12px; }

/* ---------- footer */
footer { position: relative; z-index: 1; margin-top: 150px; padding: 60px 20px 70px; text-align: center; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(153, 117, 255, 0.05)); }
.logo-sm { width: 220px; margin: 0 auto 18px; opacity: 0.95; }
.policy { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.socials { display: flex; gap: 22px; justify-content: center; font-size: 14px; color: var(--gold); }
.socials a:hover { color: var(--gold-hi); }

/* ---------- lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 10, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.lb[hidden] { display: none; }
.lb-stage img, .lb-stage video { max-width: min(88vw, 1920px); max-height: calc(100svh - 110px); border-radius: 10px; box-shadow: 0 0 80px rgba(153, 117, 255, 0.2); }
.lb-x { position: absolute; top: 14px; right: 22px; font-size: 40px; color: var(--muted); line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font: 300 60px/1 var(--serif); color: var(--muted); padding: 20px; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
.lb-x:hover, .lb-nav:hover { color: var(--gold-hi); }

/* ---------- responsive */
@media (max-width: 880px) {
	.links { display: none; }
	.top .btn.small { margin-left: auto; }
}
@media (max-width: 640px) {
	.art.wide { grid-column: auto; }
	.dl.ghost { opacity: 1; }
	.loop figcaption > span { font-size: 17px; }
}
@media (max-width: 520px) {
	.shots { grid-template-columns: 1fr 1fr; }
	.btn { padding: 11px 18px; }
	.inside .sep { margin: 0 2px; }
}
/* short screens: phones held sideways, small laptop windows */
@media (max-height: 520px) {
	.hero { padding-top: 64px; }
	.top { padding-top: 8px; padding-bottom: 8px; }
	.pitch { font-size: 18px; }
	.btn { padding: 9px 16px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wand .line, .wand .spark { transition: none; }
}
