/* =============================================
   DEMON SPIT — Shared Stylesheet
   Covers: DS aesthetic + SL migrated pages
   ============================================= */

@font-face {
  font-family: 'LemonMilkNums';
  src: url('fonts/LEMONMILK-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0030-0039, U+002C, U+002E, U+0025, U+002B, U+002F;
}
@font-face {
  font-family: 'Lemon Milk';
  src: url('fonts/LEMONMILK-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lemon Milk';
  src: url('fonts/LEMONMILK-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Notably Absent';
  src: url('fonts/NotablyAbsent.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ── Google Fonts for DS pages ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ROOT VARS — DS palette is primary, SL vars available for SL pages ── */
:root {
  /* DS core */
  --black:       #080808;
  --deep:        #0a0a0f;
  --blue-glow:   #1a6fff;
  --blue-bright: #3d8cff;
  --blue-dim:    #0d3a80;
  --white:       #f0eee8;
  --grey:        #bbbbbb;
  --smoke:       #1c1c26;

  /* SL additions (used on SL migrated pages) */
  --sl-black:    #0d0d0d;
  --sl-gray:     #1a1a1a;
  --sl-gray2:    #242424;
  --sl-blue:     #0091b3;
  --sl-purple:   #3f0088;
  --sl-green:    #008059;
  --sl-white:    #f5f5f0;
  --sl-muted:    #888;
  --sl-border:   rgba(255,255,255,0.08);
  --sl-border2:  rgba(255,255,255,0.12);
  --sl-blue-dim:   rgba(0,145,179,0.12);
  --sl-purple-dim: rgba(63,0,136,0.15);
  --sl-green-dim:  rgba(0,128,89,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Cormorant Garamond', 'LemonMilkNums', serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* SL pages override body font */
body.sl-page-body {
  font-family: 'LemonMilkNums', 'Notably Absent', sans-serif;
  background: var(--sl-black);
  color: var(--sl-white);
  cursor: auto;
}

/* ── CANVAS + SMOKE (DS pages) ── */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.smoke-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(26,111,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(10,30,80,0.15) 0%, transparent 70%);
}

/* ── GRID BG (SL pages) ── */
.sl-grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ── CUSTOM CURSOR (DS pages only) ── */
.cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--blue-glow); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s, height 0.2s, opacity 0.2s;
  box-shadow: 0 0 12px var(--blue-glow), 0 0 24px var(--blue-dim);
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--blue-glow); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
  opacity: 0.5;
}

/* ── FLOATING RUNES ── */
.rune {
  position: fixed; font-size: 1.2rem;
  color: rgba(26,111,255,0.12); pointer-events: none; z-index: 1;
  animation: runeFloat linear infinite; user-select: none;
}
@keyframes runeFloat {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.8; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ════════════════════════════════════════
   NAV — shared across both site sections
   ════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(26,111,255,0.12);
}

.nav-brand {
  font-family: 'Notably Absent', sans-serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--white); text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(26,111,255,0.35);
}
.nav-brand .brand-sep { color: rgba(26,111,255,0.4); margin: 0 0.5rem; font-weight: 400; }
.nav-brand .brand-sub {
  font-family: 'Notably Absent', sans-serif;
  font-size: 1rem; font-weight: 400; letter-spacing: 0.04em;
  color: var(--sl-blue);
  text-shadow: none;
}

.nav-links-list {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links-list a {
  font-family: 'Lemon Milk', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--grey); text-decoration: none;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap; position: relative;
}
.nav-links-list a::after {
  content: ''; position: absolute; bottom: -2px; left: 0.8rem; right: 0.8rem;
  height: 1px; background: var(--blue-glow);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links-list a:hover { color: var(--white); }
.nav-links-list a:hover::after { transform: scaleX(1); }
.nav-links-list a.active { color: var(--blue-bright); }
.nav-links-list a.active::after { transform: scaleX(1); }

/* Section divider in nav */
.nav-sep {
  width: 1px; height: 18px;
  background: rgba(26,111,255,0.2); margin: 0 0.5rem;
}

.nav-cta-link {
  background: var(--blue-glow) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 3px;
  letter-spacing: 0.08em !important;
}
.nav-cta-link::after { display: none !important; }
.nav-cta-link:hover { background: var(--blue-bright) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 4px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── PAGE LAYOUT ── */
.page { position: relative; z-index: 2; }
.sl-page { padding-top: 5rem; min-height: 100vh; position: relative; z-index: 2; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.fade-up   { animation: fadeUp 0.4s ease forwards; }
.fade-up-1 { animation: fadeUp 0.5s ease 0.05s both; }
.fade-up-2 { animation: fadeUp 0.5s ease 0.15s both; }
.fade-up-3 { animation: fadeUp 0.5s ease 0.25s both; }
.fade-up-4 { animation: fadeUp 0.5s ease 0.35s both; }
.fade-up-5 { animation: fadeUp 0.5s ease 0.45s both; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── DS SECTION LABELS ── */
.section-label {
  font-family: 'Lemon Milk', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--blue-glow); text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Notably Absent', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem;
}

/* ── SL SECTION LABELS ── */
.sl-section-label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sl-blue); margin-bottom: 0.75rem; display: block;
}
.sl-section-title {
  font-family: 'Notably Absent', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; line-height: 1.2; margin-bottom: 1rem;
}
.sl-section-sub {
  color: rgba(245,245,240,0.5); font-size: 1rem;
  max-width: 500px; line-height: 1.7; margin-bottom: 3.5rem;
}

/* ── SL UTILITY ── */
.sl-card {
  background: var(--sl-gray); border: 0.5px solid var(--sl-border);
  border-radius: 6px; padding: 1.5rem; transition: border-color 0.2s;
}
.sl-card:hover { border-color: var(--sl-border2); }
.sl-tag {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.2rem 0.55rem;
  border-radius: 3px; display: inline-block;
}
.sl-tag-blue   { background: var(--sl-blue-dim); color: var(--sl-blue); }
.sl-tag-purple { background: var(--sl-purple-dim); color: #a78bfa; }
.sl-tag-green  { background: var(--sl-green-dim); color: #34d399; }
.sl-tag-muted  { background: rgba(255,255,255,0.06); color: var(--sl-muted); }
.sl-divider { height: 0.5px; background: var(--sl-border); margin: 1.5rem 0; }

/* SL buttons */
.sl-btn {
  font-family: 'Lemon Milk', sans-serif; font-size: 0.78rem; font-weight: 500;
  padding: 0.65rem 1.4rem; border-radius: 4px; border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.sl-btn-primary { background: var(--sl-blue); color: var(--sl-white); }
.sl-btn-primary:hover { background: #00aad4; transform: translateY(-1px); }
.sl-btn-ghost {
  background: transparent; color: var(--sl-white);
  border: 0.5px solid var(--sl-border2);
}
.sl-btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

/* ── SL PAGE HEADER ── */
.sl-page-header { padding: 4rem 3rem 2rem; max-width: 860px; margin: 0 auto; }
.sl-page-label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sl-blue); margin-bottom: 0.75rem; display: block;
}
.sl-page-title {
  font-family: 'Notably Absent', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.15; margin-bottom: 0.5rem;
}
.sl-page-sub { font-size: 0.95rem; color: rgba(245,245,240,0.5); max-width: 520px; line-height: 1.75; }
.sl-content { max-width: 860px; margin: 0 auto; padding: 0 3rem 5rem; }

/* ── SL NOTICE ── */
.sl-notice {
  background: var(--sl-purple-dim); border: 0.5px solid rgba(63,0,136,0.3);
  border-radius: 6px; padding: 1.25rem 1.5rem; font-size: 0.88rem;
  color: rgba(245,245,240,0.65); line-height: 1.7; margin-bottom: 2rem;
}
.sl-notice strong { color: var(--sl-white); }

/* ── DS BUTTONS ── */
.btn-main {
  display: inline-block; padding: 1rem 3rem;
  border: 1px solid var(--blue-glow);
  color: var(--blue-bright);
  font-family: 'Lemon Milk', sans-serif; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; position: relative; overflow: hidden;
  transition: color 0.4s;
}
.btn-main::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue-glow);
  transform: translateX(-101%); transition: transform 0.4s ease; z-index: -1;
}
.btn-main:hover { color: var(--black); }
.btn-main:hover::before { transform: translateX(0); }

/* ── MARQUEE ── */
.marquee-section {
  padding: 3rem 0; overflow: hidden;
  border-top: 1px solid rgba(39, 84, 163, 0.753);
  border-bottom: 1px solid rgba(39, 84, 163, 0.753);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 20s linear infinite; white-space: nowrap;
}
.marquee-item {
  font-family: 'Lemon Milk', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: rgba(133, 173, 241, 0.486); text-transform: uppercase; flex-shrink: 0;
}
.marquee-item span { color: rgba(26,111,255,0.6); margin: 0 1.5rem; }

/* ── DIVIDER ── */
.divider {
  max-width: 1100px; margin: 0 auto; height: 1px;
  background: linear-gradient(to right, transparent, rgba(26,111,255,0.4), transparent);
}

/* ── SHARED FOOTER ── */
.site-footer {
  border-top: 1px solid rgba(26,111,255,0.12);
  padding: 3rem 3rem 2rem;
  position: relative; z-index: 2;
}
.footer-top {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; gap: 2rem; max-width: 1100px; margin: 0 auto 2rem;
}
.footer-brand-block {}
.footer-logo-ds {
  font-family: 'Notably Absent', sans-serif; font-size: 1.4rem; font-weight: 400;
  color: var(--white);
  text-decoration: none; letter-spacing: 0; display: block; margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(26,111,255,0.2);
}
.footer-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 0.9rem; color: rgba(238, 236, 236, 0.61); letter-spacing: 0.08em;
}
.footer-links-block { text-align: center; }
.footer-links-block .fl-label {
  font-family: 'Lemon Milk', sans-serif; font-size: 0.52rem;
  letter-spacing: 0.14em; color: rgba(26, 182, 255, 0.63); text-transform: uppercase;
  margin-bottom: 0.75rem; display: block;
}
.footer-links-block ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links-block a {
  font-family: 'Lemon Milk', sans-serif; font-size: 0.58rem;
  letter-spacing: 0.08em; color: var(--grey); text-decoration: none;
  text-transform: uppercase; transition: color 0.25s;
}
.footer-links-block a:hover { color: var(--blue-bright); }
.footer-social-block { text-align: right; }
.footer-social-block .fl-label {
  font-family: 'Lemon Milk', sans-serif; font-size: 0.52rem;
  letter-spacing: 0.14em; color: rgba(26, 182, 255, 0.63); text-transform: uppercase;
  margin-bottom: 0.75rem; display: block;
}
.footer-social-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.footer-social-links a {
  font-family: 'Lemon Milk', sans-serif; font-size: 0.58rem;
  letter-spacing: 0.08em; color: var(--grey); text-decoration: none;
  text-transform: uppercase; transition: color 0.25s; display: flex; align-items: center; gap: 6px;
}
.footer-social-links a:hover { color: var(--blue-bright); }
.footer-bottom {
  border-top: 0.5px solid rgba(26,111,255,0.08); padding-top: 1.5rem;
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.footer-copy {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 0.8rem; color: rgba(172, 172, 172, 0.603); letter-spacing: 0.08em;
}
.footer-copy a { color: rgba(154,154,154,0.4); text-decoration: none; }
.footer-copy a:hover { color: var(--grey); }

/* ════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.25rem; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links-list {
    display: none; flex-direction: column; align-items: stretch; gap: 0.1rem;
    width: 100%; padding: 0.6rem 0 0.4rem;
    border-top: 0.5px solid rgba(26,111,255,0.12); margin-top: 0.75rem;
  }
  .nav-links-list.open { display: flex; }
  .nav-links-list a { padding: 0.7rem 0.6rem; border-radius: 3px; font-size: 0.65rem; }
  .nav-sep { display: none; }
  .nav-cta-link { text-align: center; justify-content: center; margin-top: 0.35rem; }

  .sl-page { padding-top: 4rem; }
  .sl-page-header { padding: 2.5rem 1.25rem 1.5rem; }
  .sl-page-title { font-size: clamp(1.75rem, 7vw, 2.8rem); }
  .sl-page-sub { font-size: 0.9rem; max-width: 100%; }
  .sl-content { padding: 0 1.25rem 3.5rem; }

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-social-block { text-align: left; }
  .footer-social-links { align-items: flex-start; }
  .site-footer { padding: 2rem 1.25rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

@media (max-width: 400px) {
  .nav-brand { font-size: 0.9rem; }
}
