/* ============================================
   MAANYA PATEL — THE NERVOUS SYSTEM ON DISPLAY
   Shared Styles — Basquiat Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg:        #fffcf6;
  --text:      #383834;
  --primary:   #c41d31;
  --secondary: #776300;
  --yellow:    #fcd846;
  --s1:        #f6f3ed;
  --s2:        #f0eee6;
  --s3:        #eae8e0;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Base --- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9999;
}

/* --- Navigation --- */
.site-nav {
  background: var(--bg);
  border-bottom: 4px solid var(--text);
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.nav-logo {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.08s, transform 0.08s;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--primary);
  transform: skewX(-4deg);
}

.nav-links a.active {
  color: var(--primary);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: var(--secondary);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: 3px solid var(--text);
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--text);
  border-top: 4px solid var(--primary);
}

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

.nav-mobile a {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--bg);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  transition: background 0.1s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--primary);
  color: white;
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  border-top: 8px solid var(--primary);
  color: var(--bg);
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.footer-copy {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);
  opacity: 0.6;
  text-decoration: none;
  padding: 4px 6px;
  transition: all 0.1s;
}

.footer-links a:hover {
  background: var(--primary);
  color: white;
  opacity: 1;
}

/* --- Utility: Scribble Underline --- */
.scribble {
  background: linear-gradient(to right, var(--yellow) 0%, var(--yellow) 100%);
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 94%;
}

/* --- Utility: Redaction Block --- */
.redact {
  position: relative;
  z-index: 1;
}
.redact::after {
  content: '';
  position: absolute;
  left: -3px; top: 50%;
  width: calc(100% + 6px);
  height: 1.1em;
  background: var(--yellow);
  z-index: -1;
  transform: translateY(-50%) rotate(-0.8deg);
  opacity: 0.85;
}

/* --- Utility: Heavy Border Box --- */
.box-raw {
  border: 5px solid var(--text);
}

.box-raw-sm {
  border: 3px solid var(--text);
}

/* --- Artwork Placeholder Canvases --- */
/* Replace <div class="canvas canvas-N"> with <img> when you have real artwork */
.canvas {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.canvas-1 { /* Synaptic Fire — deep red vortex */
  background: radial-gradient(ellipse at 40% 60%, #c41d31 0%, #7a0f1b 35%, #1a0a08 70%, #0a0a0a 100%);
}
.canvas-2 { /* Bone Map — charcoal figure */
  background: linear-gradient(160deg, #1c1c1a 0%, #383834 30%, #6b5a4e 60%, #c9b89a 85%, #fffcf6 100%);
}
.canvas-3 { /* Cortical Storm — warm explosion */
  background: radial-gradient(circle at 50% 50%, #fcd846 0%, #c41d31 30%, #4a1008 65%, #0d0d0d 100%);
}
.canvas-4 { /* The Rupture — vertical tear */
  background: linear-gradient(175deg, #0a0a0a 0%, #2a0608 40%, #c41d31 60%, #fffcf6 100%);
}
.canvas-5 { /* Controlled Collapse — burgundy scatter */
  background: linear-gradient(135deg, #1a0505 0%, #5c1520 45%, #8b2030 70%, #c9a28a 100%);
}
.canvas-6 { /* Static Noise — black void */
  background: radial-gradient(ellipse at 30% 70%, #3d3020 0%, #1a1a18 50%, #0a0a0a 100%);
}
.canvas-7 { /* Nervous Response — olive signal */
  background: linear-gradient(120deg, #0a0a0a 0%, #2a2000 40%, #776300 75%, #fcd846 100%);
}
.canvas-8 { /* Signal Loss — horizontal bands */
  background: repeating-linear-gradient(180deg, #0d0d0d 0px, #0d0d0d 18px, #1a0505 18px, #1a0505 20px, #2a0000 20px, #2a0000 40px);
}

/* Canvas add-label overlay */
.canvas-label {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--text);
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  opacity: 0.9;
}

/* --- Rotated Accent Box --- */
.accent-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  transform: rotate(-1deg);
}

/* --- Page wrapper --- */
.page-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

/* --- Marquee ticker --- */
.ticker-wrap {
  overflow: hidden;
  border-top: 4px solid var(--text);
  border-bottom: 4px solid var(--text);
  background: var(--text);
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  padding: 0 32px;
}

.ticker-track span.accent {
  color: var(--yellow);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }

  .page-content { padding: 40px 16px 40px; }
}
