@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/jetbrains-mono-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/fonts/jetbrains-mono-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 800; font-display: swap; src: url('/fonts/jetbrains-mono-800.woff2') format('woff2'); }

:root {
  --magenta: #cc2f9c;
  --fg: #fff;
  --line: rgba(255, 255, 255, .55);
  --soft: rgba(255, 255, 255, .78);
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 60px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--magenta); color: var(--fg);
  font: 400 15px/1.7 'JetBrains Mono', ui-monospace, monospace;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #8aff00; color: #000; }

/* bubbles, slightly larger than the viewport so the parallax never shows an edge */
.bg {
  position: fixed; inset: -6vh -6vw; z-index: -1; pointer-events: none;
  background: var(--magenta) url('/img/bubbles.webp') center / cover no-repeat;
  will-change: transform;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(204, 47, 156, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav a {
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav .home { position: absolute; left: var(--gutter); width: 26px; height: 26px; padding: 0; }
.nav .home img { width: 100%; height: 100%; }
.nav .home::after { display: none; }

/* ---------- sections ---------- */
main { position: relative; }
.section { padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; }
.wrap { max-width: 860px; margin: 0 auto; }
h2 {
  font-weight: 800; font-size: clamp(38px, 7vw, 72px); line-height: 1; letter-spacing: -.01em;
  text-transform: uppercase; margin-bottom: 18px;
}
h3 { font-weight: 800; font-size: clamp(18px, 2.4vw, 24px); text-transform: uppercase; margin: 28px 0 10px; }
.box {
  border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px);
  background: rgba(204, 47, 156, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.box p + p { margin-top: 1em; }
.box strong { font-weight: 700; }
.note { font-size: 12px; color: var(--soft); margin-top: 18px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line); padding: 48px var(--gutter) max(36px, env(safe-area-inset-bottom));
  text-align: center;
}
.foot .mail { font-weight: 800; font-size: clamp(22px, 4.4vw, 44px); text-decoration: none; letter-spacing: -.01em; }
.foot .mail:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.foot .row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; }
.foot .row a { text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.foot .row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .by { margin-top: 26px; font-size: 12px; color: var(--soft); }
.foot .by a { text-decoration: none; }
.foot .by a:hover { color: var(--fg); text-decoration: underline; }
.foot .legal { margin-top: 10px; font-size: 11px; color: var(--soft); }
.foot .legal a { text-decoration: none; }
.foot .legal a:hover { color: var(--fg); }

/* ---------- glue-stick cursor (desktop only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; width: 40px; height: 40px; pointer-events: none;
  mix-blend-mode: difference; opacity: 0; transition: opacity .2s, width .25s, height .25s;
}
.cursor img { width: 100%; height: 100%; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { opacity: 1; }
.cursor.hot img { transform: rotate(-18deg) scale(1.35); }

@media (max-width: 640px) {
  :root { --nav-h: 52px; }
  body { font-size: 14px; }
  .nav { gap: 16px; justify-content: flex-end; padding-right: var(--gutter); }
  .nav a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
