@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500&family=Space+Mono&family=Syne:wght@700;800&display=swap");

:root {
  --bg: #05070d; --text: #e8ecf2; --muted: #8a93a6; --accent: #5ef2ff; --mag: #f24db3;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overscroll-behavior: none; } /* no swipe-back while panning the field */
body { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
canvas.bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
a { color: inherit; }

/* agreed copy block */
.intro { position: fixed; z-index: 5; left: clamp(1.5rem, 5vw, 4.5rem); bottom: clamp(1.5rem, 7vh, 4.5rem); max-width: 440px; text-shadow: 0 1px 24px rgba(5,7,13,.7); }
.intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .95; letter-spacing: .02em; }
.intro .tag { font-family: var(--mono); color: var(--accent); letter-spacing: .09em; margin: .7rem 0 1.4rem; font-size: .95rem; text-shadow: 0 0 16px rgba(94,242,255,.35); }
.intro .tag::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); margin-right: .6rem; vertical-align: .05rem; }
.intro p { line-height: 1.55; color: #c9d0dc; margin-top: .6rem; font-size: 1.02rem; }
.intro .soc { margin-top: 1.3rem; display: flex; gap: 1.1rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.intro .soc a { text-decoration: none; } .intro .soc a:hover { color: var(--accent); }

/* version switcher (review only) */
.switch { position: fixed; z-index: 50; top: 1rem; right: 1rem; display: flex; gap: .35rem; font-family: var(--mono); font-size: .72rem; }
.switch a { padding: .35rem .6rem; border: 1px solid rgba(94,242,255,.25); border-radius: 99px; text-decoration: none; color: var(--muted); background: rgba(5,7,13,.6); backdrop-filter: blur(6px); }
.switch a.on, .switch a:hover { color: var(--bg); background: var(--accent); }

/* detail panel */
.panel { position: fixed; z-index: 40; right: 0; top: 0; bottom: 0; width: min(420px, 100%); padding: 4.5rem 2.2rem 2rem; background: rgba(6,10,18,.82); backdrop-filter: blur(18px); border-left: 1px solid rgba(94,242,255,.18); transform: translateX(102%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.panel.on { transform: none; }
.panel .x { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.panel .k { font-family: var(--mono); color: var(--accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.panel h2 { font-family: var(--display); font-size: 2.2rem; margin: .5rem 0 1rem; }
.panel .l { color: #c9d0dc; line-height: 1.6; }
.panel .go { display: inline-block; margin-top: 1.6rem; font-family: var(--mono); font-size: .85rem; color: var(--accent); }
[data-project] { cursor: pointer; }
body::after { content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, rgba(5,7,13,.9) 0%, rgba(5,7,13,.6) 26%, rgba(5,7,13,.1) 48%, transparent 62%); }
