/* ────────────────────────────────────────────
   404WAV — Shared stylesheet
   Used by all pages: home, /about/, /releases/, /soma/, etc.
   ──────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #05050a;
  color: #c8c8d8;
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #05050a; }
::-webkit-scrollbar-thumb { background: #D97706; }
::selection { background: rgba(217,119,6,.25); color: #fff; }

/* ── tokens ─────────────────────────────── */
:root {
  --bg: #05050a;
  --bg-2: #08080d;
  --bg-3: #0c0c14;
  --amber: #D97706;
  --amber-glow: rgba(217,119,6,.5);
  --amber-soft: rgba(217,119,6,.15);
  --text: #e8e8f0;
  --muted: rgba(200,200,216,.55);
  --muted-2: rgba(200,200,216,.32);
  --line: rgba(255,255,255,.08);
  --line-amber: rgba(217,119,6,.18);
  --mono: 'Share Tech Mono', monospace;
  --display: 'Tektur', sans-serif;
  --body: 'Jura', sans-serif;
}

/* ── grain layer (always on) ────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift .4s steps(1) infinite;
}
@keyframes grainShift {
  0%{background-position:0 0} 20%{background-position:-60px 30px}
  40%{background-position:40px -20px} 60%{background-position:-30px 60px}
  80%{background-position:70px -40px} 100%{background-position:-50px 20px}
}

/* ── unified nav ────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(5,5,10,0);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.site-nav.scrolled,
.site-nav.always-solid {
  background: rgba(5,5,10,.92);
  border-bottom-color: var(--line-amber);
  backdrop-filter: blur(14px);
}
.site-nav-logo {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: .35em; color: var(--amber);
  text-shadow: 0 0 18px rgba(217,119,6,.4);
  display: flex; align-items: center; gap: 4px;
  text-transform: lowercase;
}
.site-nav-logo .blink { animation: navBlink 1.2s step-end infinite; }
@keyframes navBlink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.site-nav-links {
  display: flex; gap: 28px; list-style: none;
}
.site-nav-links a {
  font-family: var(--mono); font-size: 10px;
  color: rgba(200,200,216,.45);
  letter-spacing: .25em; text-transform: uppercase;
  transition: color .2s; position: relative;
  padding: 4px 0;
}
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--amber);
}
.site-nav-links a[aria-current="page"]::before {
  content: '▸ '; color: var(--amber);
}
.site-nav-cta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .25em; text-transform: lowercase;
  color: rgba(200,200,216,.65);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 16px; border-radius: 2px;
  transition: all .2s;
}
.site-nav-cta:hover {
  color: var(--amber); border-color: var(--amber-soft);
  background: rgba(217,119,6,.05);
}

/* ── unified footer ─────────────────────── */
.site-footer {
  background: #030308;
  border-top: 1px solid var(--line);
  padding: 56px 40px 36px;
  position: relative; z-index: 5;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.site-footer-brand {
  display: flex; flex-direction: column; gap: 12px;
}
.site-footer-mark {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: .04em;
}
.site-footer-mark span { color: var(--amber); }
.site-footer-tag {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  font-style: italic; max-width: 280px;
}
.site-footer-col-title {
  font-family: var(--mono); font-size: 9px;
  color: var(--amber); letter-spacing: .35em;
  text-transform: uppercase; margin-bottom: 14px;
}
.site-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer-col a {
  font-size: 12px; color: var(--muted);
  transition: color .2s; letter-spacing: .04em;
}
.site-footer-col a:hover { color: var(--amber); }
.site-footer-bottom {
  max-width: 1200px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px;
  color: rgba(200,200,216,.32); letter-spacing: .25em;
  text-transform: lowercase;
}
.site-footer-bottom .freq { color: var(--amber); }

/* ── helpers ────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--amber); letter-spacing: .4em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.section-tag::before {
  content: ''; display: block; width: 24px; height: 1px;
  background: var(--amber);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900; color: var(--text);
  line-height: 1.05; letter-spacing: -.005em;
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* ── unified buttons ────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .25em; text-transform: lowercase;
  padding: 14px 26px; border-radius: 2px;
  transition: all .2s; cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber); color: #000;
}
.btn-primary:hover {
  background: #f59e0b; transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(217,119,6,.35);
}
.btn-ghost {
  background: transparent; color: rgba(200,200,216,.7);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover {
  border-color: var(--amber); color: var(--amber);
  background: rgba(217,119,6,.04);
}

/* ── responsive ─────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; height: 54px; }
  .site-nav-links { display: none; }
  .site-nav-cta { padding: 6px 12px; font-size: 9px; }
  .container { padding: 0 20px; }
  .site-footer { padding: 44px 20px 28px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ── reveal animation ───────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .grain, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
