/*
Theme Name: PARADOX-h
Theme URI: https://paradox-h.com
Author: PARADOX-h
Author URI: https://paradox-h.com
Description: An exploration of the edge of human essence and creativity. Full-canvas immersive experience with early-2000s visual engine. WPBakery compatible.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paradox-h
Tags: full-width, canvas, immersive, custom-background, custom-logo, one-page
*/

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ph-bg:        #07050a;
  --ph-mustard:   #c8a800;
  --ph-mauve:     #9b6b7a;
  --ph-forest:    #2d5a3d;
  --ph-electric:  #4a7aff;
  --ph-rust:      #b84a1e;
  --ph-acid:      #7fff00;
  --ph-cream:     #e8e0d0;
  --ph-white:     rgba(255,255,255,1);
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--ph-bg);
  color: var(--ph-cream);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* Restore cursor on WPBakery backend editor */
body.vc-editor-active,
body.vc-editor-active * {
  cursor: auto !important;
}

/* ═══════════════════════════════════════════════════
   CANVAS LAYER — fixed, always behind everything
═══════════════════════════════════════════════════ */
#ph-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   GRAIN + SCANLINES — fixed overlays
═══════════════════════════════════════════════════ */
#ph-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  opacity: .38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23f)' opacity='.45'/%3E%3C/svg%3E");
}

#ph-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8001;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.05) 3px,
    rgba(0,0,0,.05) 4px
  );
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════════ */
#ph-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
  transition: width .18s, height .18s, border-radius .18s, background .18s;
}

/* ═══════════════════════════════════════════════════
   SITE STRUCTURE
═══════════════════════════════════════════════════ */
#ph-site-wrap {
  position: relative;
  z-index: 100;
  min-height: 100vh;
}

/* Full-canvas hero — the immersive draggable world */
.ph-hero-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: none;
}

/* WordPress page/post content sits above canvas */
.ph-content-layer {
  position: relative;
  z-index: 200;
}

/* ═══════════════════════════════════════════════════
   WPBAKERY ROW / COLUMN OVERRIDES
   WPBakery injects .vc-row, .wpb_column etc.
   These rules make them glass-panel transparent
   so the canvas shows through everywhere.
═══════════════════════════════════════════════════ */
.vc_row,
.vc_row-fluid,
.wpb_column,
.vc_column_container,
.vc_col-sm-12,
.vc_col-sm-6,
.vc_col-sm-4,
.vc_col-sm-3 {
  background: transparent !important;
}

/* WPBakery text blocks */
.wpb_text_column,
.wpb_content_element {
  background: transparent;
}

/* ═══════════════════════════════════════════════════
   PH GLASS PANEL
   A utility class for WPBakery row/column backgrounds
   when you want semi-transparent panels over the canvas
═══════════════════════════════════════════════════ */
.ph-panel {
  background: rgba(7, 5, 10, .82) !important;
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(3px);
  padding: 2rem 2.5rem;
}

.ph-panel-gold {
  background: rgba(7, 5, 10, .88) !important;
  border: 1px solid rgba(200,168,0,.2);
  backdrop-filter: blur(4px);
  padding: 2rem 2.5rem;
}

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: var(--ph-cream);
  line-height: .9;
  letter-spacing: .01em;
}

h1 { font-size: clamp(3rem, 8vw, 8rem); }
h2 { font-size: clamp(2rem, 5vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 3rem); }
h4 { font-size: clamp(1rem, 2vw, 2rem); }

p, li {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  line-height: 1.85;
  color: rgba(232,224,208,.6);
}

em, i {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  color: var(--ph-mustard);
}

a {
  color: var(--ph-mustard);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--ph-acid); }

/* Utility: VT323 mono tag text */
.ph-tag {
  font-family: 'VT323', monospace;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(200,168,0,.5);
  display: block;
  margin-bottom: .8rem;
}

/* Outline text */
.ph-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: all;
}

.ph-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
  mix-blend-mode: exclusion;
  text-decoration: none;
  transition: color .3s;
}
.ph-logo:hover { color: rgba(255,255,255,.9); }

/* Nav */
.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-family: 'VT323', monospace;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .2s;
}
.main-navigation a:hover { color: var(--ph-mustard); }

/* Hamburger for mobile */
.ph-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-family: 'VT323', monospace;
  font-size: .9rem;
  letter-spacing: .12em;
  padding: .4rem .9rem;
  cursor: none;
}

/* ═══════════════════════════════════════════════════
   HERO — canvas world section
═══════════════════════════════════════════════════ */
.ph-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.ph-hero-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'VT323', monospace;
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
  pointer-events: none;
  white-space: nowrap;
  animation: ph-breathe 3s ease-in-out infinite;
  z-index: 300;
}
@keyframes ph-breathe {
  0%,100% { opacity: .18; }
  50%      { opacity: .45; }
}

/* ── Contact form — floats over canvas ── */
#ph-contact-float {
  position: fixed;
  z-index: 500;
  pointer-events: all;
  opacity: 0;
  transition: opacity .6s;
  width: 240px;
}

#ph-contact-float input[type="email"] {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200,168,0,.4);
  outline: none;
  padding: .8rem .2rem;
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--ph-cream);
  cursor: none;
}
#ph-contact-float input::placeholder { color: rgba(232,224,208,.2); }

#ph-contact-float .ph-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: .8rem;
  background: rgba(200,168,0,.88);
  color: var(--ph-bg);
  border: none;
  padding: .9rem 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .18em;
  cursor: none;
  transition: background .25s;
}
#ph-contact-float .ph-submit:hover {
  background: var(--ph-forest);
  color: var(--ph-cream);
}

/* ═══════════════════════════════════════════════════
   STANDARD PAGE / CONTENT SECTIONS
   For WPBakery-built sub-pages (about, contact etc.)
═══════════════════════════════════════════════════ */
.ph-section {
  position: relative;
  z-index: 200;
  padding: 6rem 2rem;
}

.ph-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   WPBAKERY SHORTCODE OVERRIDES — custom elements
═══════════════════════════════════════════════════ */

/* ph_heading shortcode output */
.ph-vc-heading {
  font-family: 'Bebas Neue', sans-serif;
  line-height: .9;
}

.ph-vc-heading.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.35);
}
.ph-vc-heading.outline-gold {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ph-mustard);
}
.ph-vc-heading.outline-acid {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ph-acid);
}

/* ph_body shortcode output */
.ph-vc-body {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  line-height: 1.9;
  color: rgba(232,224,208,.5);
  max-width: 480px;
}

/* ph_tag shortcode output */
.ph-vc-tag {
  font-family: 'VT323', monospace;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(200,168,0,.5);
  display: block;
  margin-bottom: 1rem;
}

/* ph_divider */
.ph-vc-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 2rem 0;
}

/* ph_cta_button */
.ph-vc-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .18em;
  padding: .9rem 2rem;
  background: rgba(200,168,0,.88);
  color: var(--ph-bg);
  border: none;
  text-decoration: none;
  transition: background .25s, color .25s;
  cursor: none;
}
.ph-vc-btn:hover {
  background: var(--ph-forest);
  color: var(--ph-cream);
}
.ph-vc-btn.outline {
  background: transparent;
  border: 1px solid rgba(200,168,0,.4);
  color: var(--ph-mustard);
}
.ph-vc-btn.outline:hover {
  background: rgba(200,168,0,.1);
}

/* ═══════════════════════════════════════════════════
   TAPE STRIP — WPBakery element
═══════════════════════════════════════════════════ */
.ph-vc-tape {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .35rem 0;
  background: rgba(200,168,0,.04);
}
.ph-vc-tape-inner {
  display: inline-block;
  animation: ph-tape-scroll 20s linear infinite;
  font-family: 'VT323', monospace;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(200,168,0,.4);
}
.ph-vc-tape.rev .ph-vc-tape-inner { animation-direction: reverse; }
@keyframes ph-tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
#colophon {
  position: relative;
  z-index: 200;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ph-footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .04em;
}

.ph-footer-copy {
  font-family: 'VT323', monospace;
  font-size: .75rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.12);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ph-menu-toggle { display: block; }
  .main-navigation ul { display: none; }
  .main-navigation.toggled ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(7,5,10,.97);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 4000;
  }
  .main-navigation a { font-size: 1.2rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
}

/* ═══════════════════════════════════════════════════
   WORDPRESS CORE CLASSES
═══════════════════════════════════════════════════ */
.wp-caption { max-width: 100%; }
.alignnone  { margin: 1rem 0; }
.aligncenter { display: block; margin: 1rem auto; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
img { max-width: 100%; height: auto; }
