:root {
  --bg: #07090f;
  --bg-2: rgba(13, 17, 27, .72);
  --panel: rgba(18, 24, 38, .82);
  --line: #222b3f;
  --text: #e6e9f2;
  --muted: #9aa4bd;
  --accent: #f2c46d;
  --accent-ink: #1a1305;
  --link: #8fb8ff;
  --radius: 12px;
  --gutter: 16px;
  --max: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }

/* starfield behind everything */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, footer, .bar { position: relative; z-index: 1; }

/* header */
.bar { border-bottom: 1px solid transparent; background: rgba(7, 9, 15, .55); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); transition: border-color .3s, background .3s, box-shadow .3s; }
.bar.scrolled { border-bottom-color: var(--line); background: rgba(7, 9, 15, .88); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a6, var(--accent) 55%, #8a5a1c); position: relative; box-shadow: 0 0 12px rgba(242, 196, 109, .5); }
.brand i::after { content: ""; position: absolute; inset: -5px -8px; border: 1.5px solid var(--link); border-radius: 50%; transform: rotate(-24deg) scaleY(.38); opacity: .8; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; position: relative; white-space: nowrap; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a.active { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
@media (max-width: 600px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 14px 24px; border-radius: 10px; text-decoration: none; border: 0; font-size: 1.05rem; transition: transform .2s var(--ease), box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 28px rgba(242, 196, 109, .35); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.pulse { animation: glow 2.8s ease-in-out infinite; }
.btn.pulse::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: sweep 4.5s ease-in-out infinite; }
.btn .arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 196, 109, .0), 0 6px 20px rgba(242, 196, 109, .18); } 50% { box-shadow: 0 0 0 8px rgba(242, 196, 109, .12), 0 10px 32px rgba(242, 196, 109, .38); } }
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 196, 109, .14), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(110, 140, 230, .14), transparent 60%); }
.hero .wrap { z-index: 2; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: .3em; }
.shimmer { background: linear-gradient(100deg, #fff 25%, var(--accent) 45%, #fff 65%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 50% { background-position: 0 0; } 100% { background-position: 100% 0; } }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.cta .meta { color: var(--muted); font-size: .9rem; }

/* the planet */
@media (min-width: 761px) { .hero .lede { max-width: min(34em, calc(100vw - 35vw - 90px)); } }
.planet-stage { position: absolute; z-index: 1; right: max(var(--gutter), 3vw); top: 50%; width: clamp(240px, 32vw, 400px); aspect-ratio: 1; pointer-events: none;
  transform: translate(calc(var(--px, 0) * 1px), calc(-50% + var(--py, 0) * 1px)); transition: transform .35s ease-out; }
.planet { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 30%, #f3d49b, #c98d48 42%, #6d3f22 100%);
  box-shadow: 0 0 90px rgba(242, 196, 109, .28), 0 0 220px rgba(242, 160, 90, .12);
  animation: float 9s ease-in-out infinite; }
.planet .surface { position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background-size: 50% 100%; background-repeat: repeat-x;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(90, 48, 24, .55) 0 7%, transparent 8%),
    radial-gradient(circle at 12% 30%, transparent 0 8%, rgba(255, 226, 170, .4) 9% 10%, transparent 11%),
    radial-gradient(circle at 38% 64%, rgba(90, 48, 24, .5) 0 10%, transparent 11%),
    radial-gradient(circle at 38% 64%, transparent 0 11%, rgba(255, 226, 170, .35) 12% 13%, transparent 14%),
    radial-gradient(circle at 70% 24%, rgba(90, 48, 24, .5) 0 5%, transparent 6%),
    radial-gradient(circle at 84% 72%, rgba(90, 48, 24, .5) 0 8%, transparent 9%),
    radial-gradient(ellipse at 55% 48%, rgba(120, 66, 34, .45) 0 18%, transparent 40%),
    radial-gradient(ellipse at 22% 78%, rgba(255, 220, 160, .3) 0 16%, transparent 38%),
    radial-gradient(ellipse at 90% 40%, rgba(255, 220, 160, .22) 0 14%, transparent 36%);
  animation: rotate 70s linear infinite; }
.planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 28% 28%, transparent 25%, rgba(5, 6, 12, .55) 62%, rgba(2, 3, 7, .92) 100%); }
.ring { position: absolute; inset: -16% -22%; border: 1.5px solid rgba(143, 184, 255, .3); border-radius: 50%; transform: rotate(-22deg) scaleY(.3); }
.ring .arm { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.ring .arm i { position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bcd3ff 55%, #5c7bb5); box-shadow: 0 0 16px rgba(143, 184, 255, .8); }
@keyframes rotate { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }
@media (max-width: 760px) {
  .planet-stage { right: -22%; top: 30%; width: 72vw; opacity: .42; }
}

/* stats */
.stats { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 9, 15, .55); backdrop-filter: blur(6px); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { padding: 26px 8px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }

/* sections */
section { padding: clamp(40px, 6vw, 80px) 0; }
section + section { border-top: 1px solid var(--line); }
.hero + .stats + section, .stats + section { border-top: 0; }
.alt { background: var(--bg-2); backdrop-filter: blur(4px); }
.lead { color: var(--muted); max-width: 42em; }
h2 { position: relative; padding-bottom: 12px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); transition: width .8s var(--ease) .2s; }
.reveal-ready h2:not(.in)::after { width: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 24px; }
.card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 196, 109, .16), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-5px); border-color: rgba(242, 196, 109, .5); box-shadow: 0 16px 36px rgba(0, 0, 0, .4); }
.card:hover::before { opacity: 1; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 196, 109, .12); color: var(--accent); margin-bottom: 14px; transition: transform .4s var(--ease), background .3s; }
.card:hover .ico { transform: rotate(-8deg) scale(1.1); background: rgba(242, 196, 109, .22); }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

.shots { display: grid; gap: 20px; margin-top: 24px; }
.shot { margin: 0; }
.zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; cursor: zoom-in; position: relative; transition: border-color .3s, box-shadow .3s; }
.zoom img { transition: transform .8s var(--ease), filter .4s; }
.zoom::after { content: "Enlarge"; position: absolute; right: 12px; bottom: 12px; background: rgba(7, 9, 15, .8); color: var(--text); font-size: .8rem; padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.zoom:hover { border-color: rgba(242, 196, 109, .55); box-shadow: 0 0 0 1px rgba(242, 196, 109, .3), 0 18px 40px rgba(0, 0, 0, .5); }
.zoom:hover img { transform: scale(1.05); filter: brightness(1.08); }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
@media (min-width: 820px) { .shots { grid-template-columns: 1fr 1fr; } .shot.wide { grid-column: 1 / -1; } }

dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: 96vw; max-height: 94vh; color: var(--text); }
dialog#lightbox::backdrop { background: rgba(2, 3, 8, .86); backdrop-filter: blur(6px); }
dialog#lightbox[open] { animation: pop .3s var(--ease); }
dialog#lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); background: #000; }
dialog#lightbox p { text-align: center; color: var(--muted); margin: 10px 0 0; }
dialog#lightbox .close { position: absolute; top: -8px; right: -4px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(7, 9, 15, .9); color: var(--text); font-size: 1.3rem; cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 66px; position: relative; transition: transform .3s var(--ease), border-color .3s; }
.steps li:hover { transform: translateX(6px); border-color: rgba(242, 196, 109, .5); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(242, 196, 109, .5); transition: box-shadow .4s; }
.steps li:hover::before { box-shadow: 0 0 0 6px rgba(242, 196, 109, .2); }
.steps b { color: var(--text); }
.steps span { color: var(--muted); }

/* release box */
.release { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 24px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.release::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(242, 196, 109, .8) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 6s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --a: 360deg; } }
@media (min-width: 820px) { .release { grid-template-columns: 1.2fr 1fr; } }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: .95rem; }
dt { color: var(--muted); }
dd { margin: 0; word-break: break-all; }
code { font: .85rem ui-monospace, SFMono-Regular, Consolas, monospace; background: #0a0e18; padding: 2px 6px; border-radius: 6px; }
ul.notes { margin: 0; padding-left: 1.1em; color: var(--muted); }
ul.notes li { margin-bottom: .4em; }

.honest { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); max-width: 44em; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .88rem; background: rgba(7, 9, 15, .6); }
footer p { max-width: 50em; }

/* scroll reveal: only when script has run, so no-script visitors see everything */
.reveal-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-ready .reveal.from-left { transform: translateX(-30px); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal-ready .hero .reveal { transition-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .reveal-ready h2:not(.in)::after { width: 56px; }
}
