/* ============================================================
   Vista Arcadia — Theme CSS  (Vaporwave / synthwave redesign)
   ============================================================ */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html,
div.paragraph, p, blockquote, fieldset, input { margin: 0; padding: 0; }

/* ----- Birdseye Font (kept for potential fallback) ----- */
@font-face {
  font-family: 'Birdseye';
  src: url('/assets/fonts/2e3f5cb9-101f-46cf-a7b3-dfaa58261e03.woff2') format('woff2'),
       url('/assets/fonts/fa19948e-5e38-4909-b31e-41acd170d6f2.woff') format('woff');
  font-weight: 400; font-style: normal;
}

/* ----- Space Mono + Droid Serif ----- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Droid+Serif:wght@400;700&display=swap');

/* ----- CSS Variables ----- */
:root {
  --va-pink:   #ff2d78;
  --va-cyan:   #00f5ff;
  --va-purple: #bf5fff;
  --va-yellow: #ffe566;
  --va-dark:   #0a0010;
  --va-darker: #06000a;
  --va-border: rgba(191,95,255,0.3);
  --va-text:   #d0c8e8;
  --va-muted:  #7a6e9a;
  --nav-h:     60px;
}

/* ----- Base ----- */
html { height: 100%; scroll-behavior: smooth; }
body {
  width: 100%; min-height: 100%;
  background-color: var(--va-dark);
  color: var(--va-text);
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Global scanlines */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.07) 3px, rgba(0,0,0,0.07) 4px
  );
}

/* Synthwave grid floor */
body::before {
  content: '';
  position: fixed;
  bottom: 0; left: -50%; right: -50%; height: 50vh;
  background-image:
    linear-gradient(to right,  rgba(191,95,255,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(191,95,255,0.18) 1px, transparent 1px);
  background-size: 55px 55px;
  transform: rotateX(55deg);
  transform-origin: top center;
  animation: gridScroll 5s linear infinite;
  pointer-events: none; z-index: 0;
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 55px; }
}

a { color: var(--va-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--va-pink); }
a img, a:hover img { border: none; }

h2 {
  color: var(--va-cyan);
  font-family: 'Space Mono', monospace;
  font-size: 22px; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin: 0 auto 28px;
  text-shadow: 0 0 18px rgba(0,245,255,0.4);
}
div.paragraph, p {
  font-family: 'Space Mono', monospace;
  font-size: 14px; line-height: 1.8;
  color: var(--va-text); margin: 0 auto 24px;
}
blockquote {
  position: relative; padding: 1.5em 2.5em;
  border-left: 3px solid var(--va-purple);
  background: rgba(191,95,255,0.06);
  font-family: 'Space Mono', monospace;
  font-size: 14px; line-height: 1.75;
  color: var(--va-text); margin: 0 auto 24px;
}
blockquote:before {
  position: absolute; content: '\201C';
  top: .5em; left: .6em;
  font-size: 2em; line-height: 1;
  color: var(--va-purple); opacity: 0.6;
}

/* ----- Layout ----- */
.wrapper { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.container { position: relative; width: 100%; margin: 0 auto; }
.main-wrap { flex: 1; width: 100%; }
.main-wrap .container { padding: 60px 40px; }
body.full-width-body-off .main-wrap .container,
body.full-width-body-off .footer-wrap .wsite-footer { max-width: 1200px; margin: 0 auto; }

/* ----- Footer ----- */
.footer-wrap {
  width: 100%;
  border-top: 1px solid var(--va-border);
  background: var(--va-darker);
  font-size: 13px; position: relative; z-index: 1;
}
.footer-wrap .wsite-footer { padding: 40px; text-align: center; }
.footer-wrap img { opacity: 0.5; filter: saturate(0.3) brightness(1.3); max-width: 200px; }
.footer-wrap h2 { font-size: 16px; margin: 0 auto 16px; }
.footer-wrap div.paragraph, .footer-wrap p { font-size: 13px; color: var(--va-muted); margin: 0 auto 16px; }

/* ----- Sections ----- */
.wsite-section-wrap { width: 100%; }
.wsite-section { position: relative; width: 100%; overflow: hidden; box-sizing: border-box; }
.wsite-section-bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,0,16,0.6) 0%,
    rgba(30,0,50,0.45) 50%,
    rgba(10,0,16,0.75) 100%
  );
  z-index: 0;
}
.wsite-section-content { position: relative; z-index: 1; }
.wsite-section-bg-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.wsite-section-elements { padding: 40px 0; }
.wsite-spacer { display: block; }

.wsite-content-title {
  font-family: 'Space Mono', monospace !important;
  font-size: 18px !important; font-weight: 700 !important;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--va-yellow) !important;
  text-shadow: 0 0 16px rgba(255,229,102,0.5);
  margin: 0 auto 28px;
}

/* ----- Typography overrides ----- */
#wsite-content div.paragraph, #wsite-content p {
  font-family: 'Space Mono', monospace !important;
  color: var(--va-text) !important;
}
#wsite-content h2 {
  font-family: 'Space Mono', monospace !important;
  color: var(--va-cyan) !important;
}
@media screen and (min-width: 767px) {
  #wsite-content div.paragraph, #wsite-content p { font-size: 14px !important; line-height: 1.8 !important; }
  #wsite-content h2 { font-size: 28px !important; line-height: 1.3 !important; }
}

/* ----- Header / Nav ----- */
.birdseye-header {
  position: fixed; top: 0; z-index: 100; width: 100%;
  height: var(--nav-h); padding: 0 40px;
  background: rgba(6,0,10,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--va-border);
  box-sizing: border-box;
  transition: background 300ms ease;
}
.birdseye-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--va-purple), var(--va-pink), var(--va-cyan), transparent);
  opacity: 0.7;
}
.birdseye-header .nav-wrap {
  display: flex; align-items: center; height: 100%; width: 100%;
}
.birdseye-header .container {
  display: flex; align-items: center; height: 100%; width: 100%;
}
.birdseye-header .logo { flex-shrink: 0; margin-right: 30px; }
.birdseye-header .logo a { display: block; transition: opacity 200ms; }
.birdseye-header .logo a:hover { opacity: 0.7; }
.birdseye-header .logo #wsite-title {
  font-family: 'Space Mono', monospace !important;
  font-size: 15px !important; font-weight: 700 !important;
  letter-spacing: 0.2em !important; text-transform: uppercase !important;
  color: var(--va-cyan) !important;
  text-shadow: 0 0 14px rgba(0,245,255,0.6);
}
.birdseye-header .hamburger { display: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav li { display: inline-block; }
.nav .wsite-menu-item {
  display: block; padding: 8px 14px;
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--va-text) !important;
  border: 1px solid transparent; border-radius: 3px;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}
.nav .wsite-menu-item:hover {
  color: var(--va-cyan) !important;
  border-color: rgba(0,245,255,0.3);
  text-shadow: 0 0 10px rgba(0,245,255,0.5);
}
.nav li#active > .wsite-menu-item {
  color: var(--va-pink) !important;
  border-color: rgba(255,45,120,0.4);
  text-shadow: 0 0 10px rgba(255,45,120,0.5);
}
.mobile-nav { display: none; }

body.affix .birdseye-header,
body.no-header-page .birdseye-header { background: rgba(6,0,10,0.97); }

body:not(.wsite-editor) .logo,
body:not(.wsite-editor) .desktop-nav { opacity: 0; transition: opacity 600ms ease-in 200ms; }
body:not(.wsite-editor).fade-in .logo,
body:not(.wsite-editor).fade-in .desktop-nav { opacity: 1; }

.no-header-page .main-wrap { padding-top: var(--nav-h); }

/* ----- Images ----- */
.wsite-image { display: block; }
.wsite-image img { margin-bottom: 10px; }
.wsite-image-border-none img { border: none; }

/* ----- Misc ----- */
.wcustomhtml { display: block; width: 100%; }
.styled-hr {
  border: none; margin: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--va-purple), transparent);
  opacity: 0.5;
}

/* ----- Responsive ----- */
@media screen and (max-width: 992px) {
  .container { overflow: hidden; }
  .birdseye-header { padding: 0 16px; }
  .birdseye-header .logo #wsite-title { font-size: 12px !important; }
  .birdseye-header .hamburger {
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; cursor: pointer; flex-shrink: 0;
    position: relative; background: none; border: none;
  }
  .desktop-nav { display: none; }

  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    display: block; position: relative;
    width: 22px; height: 2px;
    background: var(--va-cyan);
    content: ''; transition: all 200ms ease-in-out;
  }
  .hamburger span { top: 0; margin: 5px 0; }
  .hamburger span::before { top: -8px; }
  .hamburger span::after  { bottom: -6px; }

  .mobile-nav {
    position: fixed; top: 0; left: 0; z-index: 99;
    display: block; overflow-x: hidden; overflow-y: auto;
    width: 100%; height: 100%; max-height: 0; padding: 0;
    background: rgba(6,0,10,0.97);
    border-bottom: 1px solid var(--va-border);
    box-sizing: border-box;
    transition: max-height 300ms cubic-bezier(0,0.085,0.68,0.53);
  }
  .mobile-nav .hamburger { position: absolute; top: 8px; right: 12px; }
  .mobile-nav .hamburger span { background: transparent; }
  .mobile-nav .hamburger span::before { top: 1px; background: var(--va-cyan); transform: rotate(45deg); }
  .mobile-nav .hamburger span::after  { top: -1px; background: var(--va-cyan); transform: rotate(135deg); }

  body.nav-open .mobile-nav { max-height: 100vh; padding: 64px 0 30px; }
  body.nav-open .birdseye-header .hamburger span { background: transparent; }
  body.nav-open .birdseye-header .hamburger span::before { top: 1px; transform: rotate(45deg); }
  body.nav-open .birdseye-header .hamburger span::after  { top: -1px; transform: rotate(135deg); }

  .mobile-nav ul { float: none; max-width: none; display: block; }
  .mobile-nav li { display: block !important; text-align: center; margin: 0; }
  .mobile-nav li > a.wsite-menu-item {
    padding: 16px 0; font-size: 13px !important;
    border: none; border-radius: 0;
    border-bottom: 1px solid rgba(191,95,255,0.12);
  }
  .mobile-nav li > a.wsite-menu-item:hover,
  .mobile-nav li#active > a.wsite-menu-item {
    color: var(--va-cyan) !important;
    background: rgba(0,245,255,0.05);
    text-shadow: 0 0 10px rgba(0,245,255,0.4);
  }

  .main-wrap .container { padding: 30px 20px; }
  .footer-wrap .wsite-footer { padding: 30px 20px; }
  .no-header-page .main-wrap { padding-top: var(--nav-h); }
}
@media screen and (max-width: 767px) {
  .wsite-section { height: auto !important; }
  td.wsite-multicol-col { float: none; display: block; width: 100% !important; }
}

/* ----- Lists ----- */
div.paragraph ul, div.paragraph ol { padding-left: 2em !important; margin: 5px 0 !important; }
div.paragraph li { padding-left: 4px !important; margin: 4px 0 0 !important; }

/* ----- Image reveal animations ----- */
/* Base: hidden until JS adds .va-revealed */
.va-reveal {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 800ms;
  transition-delay: var(--va-delay, 0ms);
  will-change: opacity, transform;
}
.va-reveal.va-revealed { opacity: 1; transform: none !important; filter: none !important; }

/* Option A — fade up (default) */
.va-fade-up    { transform: translateY(40px); }
/* Option B — fade down */
.va-fade-down  { transform: translateY(-40px); }
/* Option C — zoom in */
.va-zoom-in    { transform: scale(0.88); }
/* Option D — slide in from left */
.va-slide-left { transform: translateX(-60px); }
/* Option E — slide in from right */
.va-slide-right{ transform: translateX(60px); }
/* Option F — neon flicker (opacity pulse before settle) */
.va-flicker {
  transform: translateY(20px);
  animation: none;
}
.va-flicker.va-revealed {
  animation: vaFlicker 0.7s ease forwards;
}
@keyframes vaFlicker {
  0%   { opacity: 0;    transform: translateY(20px); }
  30%  { opacity: 0.8;  transform: translateY(0); }
  45%  { opacity: 0.2; }
  60%  { opacity: 1; }
  75%  { opacity: 0.4; }
  90%  { opacity: 1; }
  100% { opacity: 1;    transform: none; }
}
/* Option G — glitch-in (horizontal twitch) */
.va-glitch {
  transform: translateX(0);
}
.va-glitch.va-revealed {
  animation: vaGlitchIn 0.6s ease forwards;
}
@keyframes vaGlitchIn {
  0%  { opacity: 0; transform: translateX(-8px) skewX(-4deg); clip-path: inset(40% 0 40% 0); }
  20% { opacity: 1; transform: translateX(6px)  skewX(3deg);  clip-path: inset(0% 0 60% 0); }
  40% { transform: translateX(-4px) skewX(-2deg); clip-path: inset(30% 0 0% 0); }
  60% { transform: translateX(2px); clip-path: inset(0% 0 0% 0); }
  80% { transform: translateX(-1px); }
  100%{ opacity: 1; transform: none; clip-path: none; }
}

div.paragraph ul, div.paragraph ul li { list-style: disc outside !important; }
div.paragraph ol, div.paragraph ol li { list-style: decimal outside !important; }
