/* ── DSI SHARED STYLESHEET ─────────────────────────────────────────────────
   Source of truth for all pages. Page-specific styles live in each page's
   own <style> block and load after this file, overriding where needed.
   ──────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ── */
:root {
  color-scheme: dark;
  --ground:      #0A0806;
  --surface:     #110F0C;
  --border:      rgba(227,194,132,0.10);
  --gold:        #E3C284;
  --gold-dim:    #C4A838;
  --gold-muted:  rgba(196,168,56,0.35);
  --red:         #F21612;
  --text:        #F0EBE0;
  --text-muted:  #C4B09A;
  --text-dim:    #9A8878;
  --green:       #5EC479;
  --font-display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body:    'Rajdhani', 'Arial Narrow', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, Consolas, monospace;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── BASE ── */
html {
  font-size: 16px;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Reserve the scrollbar gutter on every page. Without this, navigating from a
     short page (no scrollbar) to a long one (scrollbar) shifts all centered
     content by the scrollbar width — reads as a jump between pages. */
  scrollbar-gutter: stable;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }

/* ── NEBULA CANVAS ── */
#nebula-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0.58rem clamp(1rem, 2.2vw, 1.6rem);
  position: sticky; top: 0;
  background: linear-gradient(180deg, rgba(4,2,1,0.55) 0%, rgba(4,2,1,0.20) 65%, transparent 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 100; overflow: visible;
  border-bottom: none; box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, black 65%, transparent 100%);
  mask-image: linear-gradient(180deg, black 65%, transparent 100%);
}
nav > * {
  position: relative; z-index: 1;
  text-shadow: 0 0 18px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.85);
}
.brand-logo-hot {
  display: flex; flex-shrink: 0; text-decoration: none;
  border-radius: 50%; transition: filter 0.3s;
  filter: drop-shadow(0 0 3px rgba(227,194,132,0.30));
}
.brand-logo-hot:hover { filter: drop-shadow(0 0 5px rgba(227,194,132,0.55)) !important; }
.nav-logo-mark { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: block; }
.nav-brand {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; flex-shrink: 0;
  margin-right: auto; padding: 0.15rem 0.35rem;
}
.nav-brand-text { display: flex; flex-direction: column; gap: 0; align-items: center; }
.nav-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.34rem; letter-spacing: 0.018em;
  line-height: 1.02; text-transform: uppercase;
  white-space: nowrap; color: var(--gold);
}
.nav-tagline {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0;
  text-transform: uppercase; white-space: nowrap;
  margin-top: -0.28rem; color: rgba(224,196,120,0.82);
}
.nav-right { display: flex; align-items: center; }
.nav-links { display: flex; gap: clamp(1.15rem, 2.2vw, 2.2rem); list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:visited { color: var(--text-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
@media (max-width: 900px) { .nav-right { display: none; } }
@media (max-width: 900px) {
  .nav-logo-mark { width: 46px; height: 46px; }
  .nav-name { font-size: 1.08rem; }
  .nav-tagline { font-size: 0.54rem; }
}

/* ── FOOTER ── */
.footer-wrap { position: relative; z-index: 2; }
.footer-bar {
  position: relative; border-top: none;
  background: transparent; padding: 3.5rem 1.5rem 0.9rem; overflow: visible;
}
.footer-bar-inner {
  position: relative; z-index: 1; max-width: none; margin: 0;
  display: flex; justify-content: flex-end; align-items: center;
  gap: 2rem; flex-wrap: wrap; min-height: 64px;
}
.footer-logo-hot {
  display: flex; flex-shrink: 0; text-decoration: none;
  border-radius: 50%; transition: filter 0.3s;
  filter: drop-shadow(0 0 3px rgba(227,194,132,0.30));
}
.footer-logo-hot:hover { filter: drop-shadow(0 0 5px rgba(227,194,132,0.55)) !important; }
.footer-email-hot {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: -0.02em; text-decoration: none;
  line-height: 1.35; white-space: nowrap;
  color: rgba(227,194,132,0.35);
}
.footer-email-hot:hover { filter: brightness(1.4); }
.footer-meta {
  font-family: var(--font-mono); letter-spacing: 0.04em;
  color: var(--text-dim); line-height: 1.42;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem;
}
.footer-meta-line { white-space: nowrap; font-size: 0.64rem; }
.footer-meta-line:last-child { opacity: 0.75; }
.footer-social-row {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 0.48rem; margin-top: 0.08rem;
}
.footer-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(227,194,132,0.05);
  border: 1px solid rgba(227,194,132,0.14);
  color: var(--text-dim); text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social-icon:hover {
  background: rgba(227,194,132,0.14);
  border-color: rgba(227,194,132,0.30);
}

/* ── COMMON ANIMATIONS ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--green); }
  50%       { opacity: 0.55; box-shadow: 0 0 8px var(--green); }
}
@keyframes blink-red { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
