@font-face {
  font-family: "Marceline";
  src: url("assets/fonts/Marceline.otf") format("opentype"),
       url("assets/fonts/Marceline.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #02030a;
  --fg: #fff;
  --muted: #bfbfbf;
  --line: #404040;
  --accent: #61acd5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #000; padding: 8px; z-index: 10; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.brand { font-family: "Marceline", cursive; font-size: 2rem; text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
nav a, nav button { color: var(--fg); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; padding: 4px 0; }
nav a:hover, nav button:hover { color: var(--accent); }
.more { position: relative; }
.more ul { display: none; position: absolute; right: 0; top: 100%; flex-direction: column; gap: 0; background: #111; border: 1px solid var(--line); padding: 8px 16px; min-width: 140px; }
.more.open ul { display: flex; }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 1.6rem; cursor: pointer; }

/* Hero */
main { max-width: 980px; margin: 0 auto; padding: 0 5vw; }
.hero { text-align: center; padding: 56px 0 40px; }
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; border: 1px solid var(--line); }
.wordmark { font-family: "Marceline", cursive; font-weight: normal; font-size: clamp(3rem, 10vw, 6rem); margin: 0; line-height: 1.1; }
.subtitle { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; margin: 12px 0 0; }

/* Album */
.album { display: flex; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.cover { width: 352px; height: 352px; object-fit: cover; flex: none; }
.album h2 { margin: 0 0 12px; font-weight: 400; font-size: 1.8rem; }
.album p { color: var(--muted); margin: 0 0 20px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border: 1px solid var(--fg); color: var(--fg); padding: 10px 20px; text-decoration: none; transition: .2s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.track { color: var(--accent); text-decoration: none; }
.track:hover { text-decoration: underline; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Social */
.social { list-style: none; display: flex; justify-content: center; gap: 24px; padding: 32px 0; margin: 0; }
.social a { opacity: .85; transition: .2s; display: block; }
.social a:hover { opacity: 1; transform: translateY(-2px); }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px; border-top: 1px solid var(--line); }

/* Mobile */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 5vw; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 10px; }
  .more ul { position: static; border: 0; padding: 4px 0 0 12px; }
  .album { flex-direction: column; text-align: center; }
  .cover { width: 100%; height: auto; aspect-ratio: 1; max-width: 352px; }
  .buttons { justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
}

/* Subpages */
nav a[aria-current="page"] { color: var(--accent); }
.page-head { text-align: center; padding: 48px 0 16px; }
.page-head h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); margin: 0; }
.text-block { max-width: 720px; margin: 0 auto; padding: 16px 0; }
.text-block h2 { font-weight: 400; margin: 16px 0 8px; }
.text-block p { color: var(--muted); }
.mosaic { columns: 3 260px; column-gap: 16px; padding: 24px 0; }
.mosaic a { display: block; margin-bottom: 16px; }
.mosaic img { width: 100%; }
.wallpapers { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; padding: 24px 0; }
.wallpapers figure { margin: 0; width: 160px; text-align: center; font-size: .9rem; color: var(--muted); }
.wallpapers img { width: 160px; height: 160px; object-fit: cover; margin-bottom: 8px; transition: .2s; }
.wallpapers a:hover img { transform: scale(1.04); }
.wallpapers strong { color: var(--fg); font-weight: 400; }
.contact-img { max-width: 480px; width: 100%; margin: 24px auto; }
.center { text-align: center; } .muted { color: var(--muted); }

/* Round wallpaper discs */
.wallpapers img { border-radius: 50%; border: 2px solid var(--fg); }
.disc { position: relative; width: 160px; height: 160px; margin: 0 auto 8px; }
.disc img { margin: 0; }
.play { position: absolute; right: -4px; bottom: -4px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--fg); background: var(--bg); color: var(--fg); cursor: pointer; font-size: 14px; transition: .2s; }
.play:hover { background: var(--fg); color: var(--bg); }

.vol { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.vol input { width: 100px; accent-color: var(--accent); }

/* Subpage background: faint starfield + nebula glow + synth grid */
body {
  background:
    radial-gradient(1px 1px at 20px 30px, #fff8, transparent),
    radial-gradient(1px 1px at 120px 90px, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fffa, transparent),
    radial-gradient(ellipse at 15% 0%, rgba(44,123,193,.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(130,60,170,.18), transparent 55%),
    #02030a;
  background-size: 240px 200px, 240px 200px, 240px 200px, auto, auto, auto;
  background-attachment: fixed;
}

/* Home: wallpaper covers the whole page */
body.home {
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.7)),
    url("assets/img/Bladerunner1303_a_probe_in_the_universe.jpg") center / cover no-repeat fixed;
}
body.home .site-header { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
body.home footer { background: rgba(0,0,0,.4); }

/* Wider gallery grid on desktop */
main.wide { max-width: 1700px; }
.mosaic { columns: 4 240px; column-gap: 14px; }
.mosaic a { margin-bottom: 14px; }
.mosaic img { transition: .2s; }
.mosaic a:hover img { filter: brightness(1.15); }
.mosaic-video { break-inside: avoid; margin-bottom: 14px; }
.mosaic-video video { width: 100%; display: block; background: #000; }
/* Hover caption overlay (text from data-caption, like the old Wix gallery) */
.mosaic a { position: relative; }
.mosaic a[data-caption]::after {
  content: attr(data-caption);
  position: absolute; inset: 0;
  padding: 18px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  color: #fff; font-size: 1.05rem; line-height: 1.3;
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.mosaic a[data-caption]:hover::after,
.mosaic a[data-caption]:focus-visible::after { opacity: 1; }
@media (hover: none) { .mosaic a[data-caption]::after { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 45%); display: flex; align-items: flex-end; } }

/* Per-page backgrounds (large star tile, non-repeating look) */
body.page-music, body.page-gallery, body.page-equipment, body.page-tiktok, body.page-contact { background-attachment: fixed; }
body.page-tiktok {
  background:
    url("assets/img/stars.png") 0 0 / 1800px 1200px,
    radial-gradient(ellipse at 15% 0%, rgba(44,123,193,.25), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(130,60,170,.2), transparent 55%),
    #02030a;
  background-attachment: fixed;
}
body.page-music {
  background:
    linear-gradient(rgba(2,3,10,.72), rgba(2,3,10,.88)),
    url("assets/img/bg-music.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(44,123,193,.2), transparent 60%),
    #02030a;
  background-attachment: fixed;
}
body.page-gallery, body.page-equipment {
  background:
    radial-gradient(ellipse at 25% 20%, rgba(180,70,150,.28), transparent 45%),
    radial-gradient(ellipse at 75% 35%, rgba(44,123,193,.3), transparent 50%),
    radial-gradient(ellipse at 45% 85%, rgba(90,50,170,.25), transparent 50%),
    url("assets/img/stars.png") 300px 200px / 1800px 1200px,
    #02030a;
  background-attachment: fixed;
}
body.page-contact {
  background:
    url("assets/img/bg-grid.svg") bottom center / 100% auto no-repeat,
    url("assets/img/stars.png") 600px 100px / 1800px 1200px,
    radial-gradient(ellipse at 50% 100%, rgba(178,74,216,.25), transparent 55%),
    #02030a;
  background-attachment: fixed;
}

/* Equipment page */
.eq-group { padding: 24px 0 8px; }
.eq-group h2 { font-weight: 400; font-size: 1.5rem; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
/* Wider layout on desktop; phones are unaffected (max-width only caps large screens).
   Smaller side padding so the grid gets 4-5 columns on 1280-2560 px wide viewports. */
body.page-equipment main { max-width: 1600px; padding: 0 3vw; }
@media (max-width: 760px) { body.page-equipment main { padding: 0 5vw; } }
.card { background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 14px; }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #0a0d1a; margin-bottom: 12px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; letter-spacing: .08em; color: var(--accent); background: linear-gradient(135deg, rgba(44,123,193,.25), rgba(130,60,170,.25)); }
.card h3 { font-weight: 400; font-size: 1.15rem; margin: 0; }
.card .by { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.card p { color: var(--muted); font-size: .92rem; margin: 8px 0 0; }
.credit { font-size: .8rem; padding-top: 24px; }