@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;900&family=Permanent+Marker&display=swap');

:root {
  /* -- Colors: Studio Cyber-Punk -- */
  --bg-primary:    #080808; 
  --bg-layer-2:    #111111;
  --bg-card:       #141414;
  --bg-card-hover: #1b1b1b;
  --accent-brine:  #00ed4e; 
  --brand-orange:  #ff4000;
  --accent-orange: #ff4000;
  --accent-yellow: #f4ff00;
  --accent-cyan:   #00f0ff;
  --accent-hot-pink: #ff2a85;
  --text-primary:  #ffffff;
  --text-dim:      rgba(255, 255, 255, 0.7);
  --text-muted:    rgba(255, 255, 255, 0.45);
  
  /* -- Glow Tokens -- */
  --glow-brine:    rgba(0, 237, 78, 0.5);
  --glow-brine-sm: rgba(0, 237, 78, 0.25);
  --glow-orange:   rgba(255, 64, 0, 0.4);
  --glow-yellow:   rgba(244, 255, 0, 0.4);

  /* -- Borders & Structure -- */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.12);
  --border-main:   2px solid #ffffff;
  --border-punk:   2px solid var(--accent-brine);
  
  /* -- Units -- */
  --unit:          8px;
  --container-w:   1260px;
  --reading-w:     820px;
  
  /* -- Typography -- */
  --font-marker:   'Permanent Marker', cursive;
  --font-display:  'Space Grotesk', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --font-body:     'Inter', sans-serif;

  /* -- Easing -- */
  --ease-punk:     cubic-bezier(0.19, 1, 0.22, 1);
  --trans-fast:    120ms var(--ease-punk);
  --trans-med:     280ms var(--ease-punk);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent-brine);
  color: var(--bg-primary);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Heavy Photocopy Overlay ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.grain-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.025) 2px,
    rgba(0, 0, 0, 0.025) 4px
  );
  z-index: 9999;
}

/* ---- COLLAGE LAYER: AMBIENT SPLASHES ---- */
.collage-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1; 
  background: transparent;
  overflow: hidden;
}

.splash {
  position: absolute;
  opacity: 0.15; 
  mix-blend-mode: screen; 
  pointer-events: none;
}

.splash-1 { 
  top: 10%; 
  right: -5%; 
  width: 600px; 
  transform: rotate(15deg); 
  filter: hue-rotate(45deg) saturate(1.8); /* Pink to Brand Orange */
}

.splash-2 { 
  bottom: 5%; 
  left: -5%; 
  width: 400px; 
  transform: rotate(-10deg); 
  filter: invert(1) brightness(0.5); 
}

/* ---- Typography Hierarchy ---- */
h1, h2, h3, h4 {
  font-family: var(--font-marker);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slanted {
  display: inline-block;
  transform: skewX(-15deg);
  background: var(--accent-brine);
  color: #000;
  padding: 0 10px;
}

.footer-banner-long {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--trans-med);
}

.footer-banner-long:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .footer-banner-long {
    height: 30px;
  }
}

.hot {
  color: var(--brand-orange);
  text-shadow: 4px 4px 0 #000;
}

/* ---- Zine Marker Effects ---- */
mark, .marker-green, .marker-orange {
  padding: 0 4px;
  border-radius: 2px;
  display: inline-block;
  line-height: 1;
  transform: rotate(-1deg);
}

mark {
  background: var(--accent-yellow);
  color: #000;
}

.marker-green {
  background: var(--accent-brine);
  color: #000;
  transform: rotate(1deg);
}

.marker-orange {
  background: var(--brand-orange);
  color: #fff;
  transform: rotate(-0.5deg);
}

/* ---- Bio & Narrative Utilities ---- */
@media (max-width: 600px) {
    .journal-display {
        font-size: 2.2rem !important;
        text-shadow: 3px 3px 0 var(--accent-orange) !important;
        line-height: 1 !important;
        transform: rotate(-1.5deg) !important;
        width: 100%;
        max-width: 350px; 
        margin: 0 auto;
        text-align: center;
        display: block;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .bio-body {
        text-align: center !important;
        font-size: 0.9rem !important;
        width: 100%;
        max-width: 350px;
        margin: 15px auto 0;
    }

    .bio-body p {
        display: inline;
        line-height: 1.5;
    }
}

.bio-tagline {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 800;
}

.bio-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 900px;
  margin: 0 auto;
}

.bio-body p {
  margin-bottom: calc(var(--unit) * 4);
}

/* ---- BUTTONS: PUNK ---- */
.btn-punk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 4);
  background: var(--accent-brine);
  color: #000;
  font-family: var(--font-marker);
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-punk:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 #000;
  background: #fff;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

/* ---- Section Titles: Diamond Accent ---- */
.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 12px;
  background: var(--brand-orange);
  margin-top: -10px;
  z-index: -1;
  position: relative;
  transform: rotate(-1deg);
}

/* ---- Structural Foundations ---- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 calc(var(--unit) * 4);
  position: relative;
  z-index: 20; /* Keep content above background layers */
}

.container-narrative {
  max-width: var(--reading-w);
  margin: 0 auto;
  position: relative;
}

/* Punk irregular border container */
.punk-frame {
  border: 2px solid var(--accent-brine);
  padding: calc(var(--unit) * 4);
  position: relative;
  clip-path: polygon(
    0% 2%, 5% 0%, 95% 1%, 100% 4%, 
    98% 95%, 94% 100%, 6% 98%, 0% 94%
  ); /* Irregular hand-cut look */
  background: var(--bg-layer-2);
  box-shadow: 0 0 20px var(--glow-brine-sm);
}

.punk-frame::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid var(--accent-brine);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-0.5deg);
}

/* ---- Section Transitions: TORN EDGES ---- */
.torn-edge {
  position: relative;
  overflow: visible !important;
}

.torn-top::before,
.torn-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background-color: inherit;
  z-index: 2;
  pointer-events: none;
}

.torn-top::before {
  top: -25px;
  clip-path: polygon(
    0% 50%, 5% 20%, 10% 45%, 15% 10%, 20% 40%, 25% 15%, 
    30% 50%, 35% 25%, 40% 45%, 45% 10%, 50% 35%, 55% 15%, 
    60% 40%, 65% 10%, 70% 45%, 75% 20%, 80% 50%, 85% 15%, 
    90% 40%, 95% 25%, 100% 50%, 100% 100%, 0% 100%
  );
  filter: drop-shadow(0 -5px 10px rgba(0,0,0,0.5));
}

.torn-bottom::after {
  bottom: -25px;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 50%, 95% 75%, 90% 60%, 85% 85%, 
    80% 50%, 75% 80%, 70% 55%, 65% 90%, 60% 60%, 55% 85%, 
    50% 65%, 45% 90%, 40% 55%, 35% 75%, 30% 50%, 25% 85%, 
    20% 60%, 15% 90%, 10% 55%, 5% 80%, 0% 50%
  );
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

section {
  padding: calc(var(--unit) * 16) 0;
  border-bottom: var(--border-subtle);
  position: relative;
}

/* ---- Navigation: Studio Header & Sticker Bar ---- */
.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
  transition: all var(--trans-med);
}

.studio-header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--accent-orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--unit) * 2);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 2);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.8));
  transition: transform var(--trans-fast);
}

.header-logo:hover img {
  transform: rotate(-1.5deg) scale(1.03);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: calc(var(--unit) * 1.5);
  list-style: none;
  align-items: center;
}

.nav-links li a {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: #000;
  font-family: var(--font-marker);
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--trans-fast);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.9);
  border: 1.5px solid #000;
}

.nav-links li:nth-child(1) a { transform: rotate(-1.5deg); background: var(--accent-yellow); }
.nav-links li:nth-child(2) a { transform: rotate(1deg); background: #ffffff; }
.nav-links li:nth-child(3) a { transform: rotate(-1deg); background: var(--accent-brine); }
.nav-links li:nth-child(4) a { transform: rotate(1.5deg); background: #ffffff; }
.nav-links li:nth-child(5) a { transform: rotate(-1deg); background: var(--accent-hot-pink); color: #fff; }

.nav-links li.nav-cta-item a,
.nav-links li a.nav-cta-link {
  transform: rotate(2deg);
  background: var(--brand-orange) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 4px 4px 0 var(--accent-yellow) !important;
  padding: 8px 18px !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em;
}

.nav-links li a:hover {
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 6px 6px 0 rgba(0,0,0,1);
  z-index: 10;
}

.nav-links li.nav-cta-item a:hover,
.nav-links li a.nav-cta-link:hover {
  background: var(--accent-brine) !important;
  color: #000000 !important;
  box-shadow: 6px 6px 0 #ffffff !important;
}

.nav-links li a.active {
  border: 3px solid #000;
  outline: 2px solid var(--accent-brine);
}

/* ---- MARQUEE / TICKER TAPE UTILITY ---- */
.studio-ticker-tape {
  background: var(--accent-yellow);
  color: #000;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  z-index: 15;
}

.ticker-track {
  display: inline-flex;
  gap: calc(var(--unit) * 4);
  animation: ticker-scroll 24s linear infinite;
}

.studio-ticker-tape:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- TORN PAPER UTILITY ---- */
.torn-edge {
  position: relative;
}

.torn-bottom::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  mask-image: url('../assets/torn_paper.png');
  mask-size: 100% 80px;
  mask-repeat: no-repeat;
  mask-position: bottom;
  pointer-events: none;
  z-index: 10;
}

.torn-top::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  mask-image: url('../assets/torn_paper.png');
  mask-size: 100% 80px;
  mask-repeat: no-repeat;
  mask-position: top;
  pointer-events: none;
  z-index: 10;
  transform: rotate(180deg);
}
/* Navigation cleaned up */

/* ---- Animation Reveals (richer) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 240ms; }
.delay-3 { transition-delay: 360ms; }

/* ---- Ambient Glow (reusable hero hotspot) ---- */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 255, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-brine  { color: var(--accent-brine); }
.text-dim    { color: var(--text-dim); }
.mb-1 { margin-bottom: var(--unit); }
.mb-2 { margin-bottom: calc(var(--unit) * 2); }
.mb-4 { margin-bottom: calc(var(--unit) * 4); }
.mb-6 { margin-bottom: calc(var(--unit) * 6); }
.mt-2 { margin-top: calc(var(--unit) * 2); }
.mt-4 { margin-top: calc(var(--unit) * 4); }

/* ---- Footer (shared across pages) ---- */
footer {
  padding: calc(var(--unit) * 10) 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-brine), transparent);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: calc(var(--unit) * 6);
  border-bottom: var(--border-subtle);
  margin-bottom: calc(var(--unit) * 4);
}

.footer-nav {
  display: flex;
  gap: calc(var(--unit) * 12);
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 1);
}

.footer-nav-group a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--trans-med), padding-left 300ms var(--ease-out);
}

.footer-nav-group a:hover {
  color: var(--accent-brine);
  padding-left: 4px;
}

.footer-base {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
  display: none;
  background: #000;
  border: 2px solid var(--accent-brine);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all var(--trans-med);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  width: 44px;
  height: 44px;
}

.nav-toggle:hover {
  border-color: var(--accent-brine);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-brine);
  transition: all 300ms var(--ease-out);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root { --unit: 6px; }
  
  .container { padding: 0 calc(var(--unit) * 3); }

  .nav-links { 
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: calc(var(--unit) * 8) calc(var(--unit) * 4);
    gap: calc(var(--unit) * 4);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links li a {
    font-family: var(--font-marker);
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    padding: 8px 24px;
    width: fit-content;
    max-width: 90vw;
    text-align: center;
    background: #fff;
    color: #000;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
    transition: all var(--trans-fast);
    display: block;
    transform: rotate(var(--r, 1deg));
    touch-action: manipulation;
  }

  .nav-links li:nth-child(1) a { --r: -2deg; background: var(--accent-yellow); color: #000 !important; }
  .nav-links li:nth-child(2) a { --r: 1.5deg; background: #ffffff; color: #000 !important; }
  .nav-links li:nth-child(3) a { --r: -1deg; background: var(--accent-brine); color: #000 !important; }
  .nav-links li:nth-child(4) a { --r: 2deg; background: #ffffff; color: #000 !important; }
  .nav-links li:nth-child(5) a { --r: -1.5deg; background: var(--accent-hot-pink); color: #fff !important; }
  .nav-links li:nth-child(6) a,
  .nav-links li.nav-cta-item a { 
    --r: 1deg; 
    background: var(--brand-orange) !important; 
    color: #fff !important;
    border: 3px solid #fff !important;
    box-shadow: 6px 6px 0 var(--accent-yellow) !important;
  }

  .nav-links li a:active {
    transform: scale(0.95) rotate(0deg);
  }

  .nav-toggle { display: flex; z-index: 1002; }

  /* Hamburger to X Animation */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .footer-grid { flex-direction: column; gap: calc(var(--unit) * 6); }
  .footer-nav { 
    width: 100%;
    justify-content: space-between;
    gap: calc(var(--unit) * 4); 
    flex-wrap: wrap;
  }
  .ambient-glow { width: 300px; height: 300px; }
}

@media (max-width: 580px) {
  .header-logo img {
    height: 28px;
  }

  .footer-nav {
    flex-direction: column;
    gap: calc(var(--unit) * 5);
  }

  .footer-banner-long {
    height: 28px;
  }
}

/* ---- FOOTER: PUNK ZINE ---- */
footer {
  background: #000;
  color: #fff;
  padding: calc(var(--unit) * 12) 0;
  border-top: 10px solid var(--accent-orange);
  position: relative;
  z-index: 5;
}

footer .nav-logo img {
  filter: brightness(0) invert(1);
  height: 40px;
}

.footer-nav-group span {
  font-family: var(--font-marker);
  font-size: 1.5rem;
  color: var(--accent-yellow);
}

.footer-nav-group a {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--trans-fast);
}

.footer-nav-group a:hover {
  color: var(--accent-brine);
}
