:root {
  --bg: #030303;
  --text: #ffffff;
  --text-dim: #a0a0a0;
  --accent: #ccff00;
  /* More vibrant Acid Lime */
  --accent-2: #00f3ff;
  /* Electric Cyan for depth */
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(10, 10, 10, 0.8);

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'General Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* --- LAYERS (FIXED Z-INDEX) --- */
/* Background Elements: Negative Z-Index or 0 */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, #000 140%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Content: High Z-Index */
.wrapper {
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Cursor: Highest */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s;
}

.magnetic-area {
  display: inline-block;
}

/* --- TYPOGRAPHY & STRUCTURE --- */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 0;
}

.label {
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
  font-weight: 500;
}

.label::before {
  content: '/// ';
  opacity: 0.6;
}

/* --- HERO --- */
.hero-glitch-wrap {
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 14rem);
  /* Reduced max size to prevent overlap */
  line-height: 0.85;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  /* Ensure it stays on one line */
  cursor: default;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.hero-bio {
  font-size: 1.3rem;
  color: var(--text-dim);
  max-width: 45ch;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--accent);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-code);
  font-size: 0.9rem;
  transition: 0.3s;
  overflow: hidden;
}

.btn-hero:hover {
  background: #fff;
  color: #000;
}

/* Hugging Face Button Accent */
.btn-hero.btn-hf {
  background: linear-gradient(135deg, rgba(255, 213, 0, 0.15), rgba(255, 167, 38, 0.1));
  border-color: rgba(255, 213, 0, 0.3);
}

.btn-hero.btn-hf:hover {
  background: linear-gradient(135deg, #ffd500, #ffab00);
  color: #000;
  border-color: #ffd500;
  box-shadow: 0 0 25px rgba(255, 213, 0, 0.4);
}

.btn-hero.btn-hf .hf-icon {
  font-size: 1.2rem;
  filter: grayscale(0);
  transition: transform 0.3s ease;
}

.btn-hero.btn-hf:hover .hf-icon {
  transform: scale(1.2) rotate(-10deg);
}

/* --- MANIFESTO --- */
.manifesto {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.1;
  font-family: var(--font-display);
  color: #666;
  max-width: 1200px;
}

.manifesto span {
  color: #fff;
}

.manifesto .highlight {
  color: var(--accent);
}

/* Flashlight Effect */
.mission-section {
  position: relative;
  --x: 50%;
  --y: 50%;
  overflow: hidden;
  /* Contain the glow */
}

.manifesto-container {
  position: relative;
  z-index: 1;
}

.manifesto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 250px at var(--x) var(--y), rgba(255, 255, 255, 0.15), transparent 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* Scroll Float Animation */
.scroll-float {
  overflow: hidden;
}

.scroll-float-text {
  display: inline-block;
  /* font-size is handled by .manifesto */
  font-weight: 900;
  text-align: center;
  line-height: 1.5;
}

.char {
  display: inline-block;
  will-change: opacity, transform;
}

/* --- MODULES --- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  /* Chamfered corners using clip-path */
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  backdrop-filter: blur(12px);
  opacity: 1;
}

/* Technical Borders */
.module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  /* Corner brackets */
  background:
    linear-gradient(to right, var(--accent) 2px, transparent 2px) 0 0,
    linear-gradient(to bottom, var(--accent) 2px, transparent 2px) 0 0,
    linear-gradient(to left, var(--accent) 2px, transparent 2px) 100% 100%,
    linear-gradient(to top, var(--accent) 2px, transparent 2px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  opacity: 0.3;
  transition: opacity 0.3s;
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.module-card:hover::after {
  opacity: 1;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.module-card:hover::before {
  opacity: 1;
}

.module-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.module-title {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  padding: 4px 10px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.2);
  background: rgba(204, 255, 0, 0.05);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- OPEN SOURCE CONTRIBUTIONS --- */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.oss-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Hover effect same as modules/projects */
.oss-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.oss-card:hover::before {
  opacity: 1;
}

.oss-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.oss-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.oss-icon {
  font-size: 2.5rem;
  color: var(--accent);
}

.oss-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.oss-repo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.oss-status {
  font-family: var(--font-code);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}

.oss-status.merged {
  background: rgba(0, 255, 100, 0.15);
  color: #00ff64;
  border: 1px solid rgba(0, 255, 100, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.1);
}

.oss-desc {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.oss-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.oss-stat {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.oss-stat i {
  color: var(--accent);
}

/* --- EXPERIENCE --- */
.exp-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}

.exp-card {
  position: relative;
  transition: 0.3s;
}

.exp-card::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  /* Align with border-left center (-2rem padding -0.4rem offset) */
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 0 0 var(--bg);
  /* Outline effect */
}

/* Fix connector line position logic */
.exp-grid {
  position: relative;
}

/* The dot needs to sit exactly on the line border. 
   Grid has 2rem padding left. Line is at left: 0 of grid.
   So dot should be at left: - (half dot width + half line width).
   Line is 1px. Dot is 12px (plus 4px border total 16px).
   Center of line is 0.5px. Center of dot is 8px.
   Left should be -7.5px relative to border? 
   But the border is on the parent div.
*/
.exp-card::before {
  left: calc(-2rem - 0.5rem);
  /* -2rem padding - radius approx */
}

/* Let's trust visual alignment or use a specific marker wrapper */

.exp-card:hover::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.2);
}

.exp-header {
  margin-bottom: 1.5rem;
}

.exp-date {
  font-family: var(--font-code);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(204, 255, 0, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.exp-role {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin: 0.5rem 0;
  line-height: 1.1;
}

.exp-company {
  font-family: var(--font-code);
  font-size: 1rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.company-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.company-tag {
  color: var(--text-dim);
  font-size: 0.75rem;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}

.company-loc {
  color: #666;
  font-size: 0.85rem;
}

.exp-bullets {
  list-style: none;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
}

.exp-bullets li {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 1.05rem;
}

.bullet-icon {
  color: var(--accent);
  font-family: var(--font-code);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Highlight inside text */
.highlight {
  color: #fff;
  font-weight: 500;
}

/* --- PROJECTS (Blueprint) --- */
.project-card {
  display: grid;
  grid-template-columns: 0.5fr 2fr;
  gap: 3rem;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 16px;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--accent);
  transform: scale(1.01);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.p-id {
  font-family: var(--font-display);
  font-size: 5rem;
  color: #222;
  line-height: 1;
  font-weight: 700;
  transition: 0.3s;
}

.project-card:hover .p-id {
  color: var(--accent);
  opacity: 0.2;
}

.p-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.p-head h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
}

.p-tags {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.p-desc {
  font-size: 1.15rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
}

.view-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-code);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  pointer-events: auto;
  /* Enable clicks */
  text-decoration: none;
  /* For anchor tag */
  cursor: pointer;
}

.project-card:hover .view-btn {
  opacity: 1;
  transform: translateY(0);
}

.stats-bar {
  display: flex;
  gap: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat b {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.stat small {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  margin-top: 6px;
}

.btn-source {
  font-family: var(--font-code);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: 0.3s;
  display: inline-block;
}

.btn-source:hover {
  color: var(--accent);
  padding-bottom: 8px;
}

/* Live Demo Button */
.btn-live-demo {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #b8e600);
  padding: 8px 16px;
  border-radius: 6px;
  margin-left: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}

.btn-live-demo i {
  font-size: 1.1rem;
}

.btn-live-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(204, 255, 0, 0.5);
  background: linear-gradient(135deg, #d4ff33, var(--accent));
}

/* --- MARQUEE --- */
.marquee-section {
  padding: 12vh 0;
  background: #000;
  border-block: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 2rem;
}

.track,
.track-rev {
  display: flex;
  white-space: nowrap;
  gap: 4rem;
}

.mq-item {
  font-size: 5vw;
  font-family: var(--font-display);
  color: #1a1a1a;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #444;
  transition: 0.3s;
  cursor: default;
}

.mq-item:hover {
  color: var(--accent);
  -webkit-text-stroke: 0px;
}

/* --- FOOTER --- */
.footer {
  min-height: 70vh;
  justify-content: flex-end;
  padding-bottom: 4rem;
}

.big-link {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.85;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 4rem;
  transition: color 0.3s;
}

.big-link:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.f-link {
  color: #888;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
}

.f-link:hover {
  color: #fff;
}

/* --- NEW SECTIONS --- */
.human-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.human-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 12px;
  transition: 0.3s;
}

.human-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.human-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.pitch-item {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.pitch-head {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pitch-desc {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.5;
}

/* --- SYSTEM HUD --- */
.sys-hud {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 100;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  mix-blend-mode: difference;
}

.sys-row {
  display: flex;
  gap: 1rem;
}

.sys-label {
  color: #555;
}

.sys-val {
  color: var(--accent);
}

.sys-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 2px 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
  pointer-events: auto;
}

.sys-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.sys-btn.active {
  background: var(--accent);
  color: #000;
}

/* --- HANDWRITTEN ANNOTATIONS --- */
.hand-note {
  position: absolute;
  font-family: 'Caveat', cursive;
  color: var(--accent);
  font-size: 1.5rem;
  transform: rotate(-5deg);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hand-arrow {
  font-size: 2rem;
  line-height: 1;
  vertical-align: middle;
}

/* --- NARRATIVE THREAD (Neural Spine) --- */
.narrative-line {
  position: fixed;
  top: 0;
  left: 40px;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 5;
}

.line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* --- DOODLES --- */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  opacity: 0.8;
}

.doodle path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* --- DIGITAL SIGNATURE --- */
#signature-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: crosshair;
  z-index: 1;
  opacity: 0.4;
}

/* --- 3D HUMAN CARDS --- */
.human-grid-3d {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 1000px;
}

.human-card-3d {
  width: 280px;
  height: 320px;
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
}

.h3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.human-card-3d:hover .h3d-inner {
  transform: rotateY(180deg);
}

.h3d-front,
.h3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
}

.h3d-front {
  color: #fff;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.h3d-back {
  background: var(--accent);
  color: #000;
  transform: rotateY(180deg);
  font-family: var(--font-code);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  padding: 1.5rem;
}

.h3d-front h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin: 0;
  text-transform: uppercase;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

.human-card-3d:hover .h3d-front h3 {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

/* --- FOOTER INTERACTION FIX --- */
.footer-content-layer {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* --- COPY BUTTON FEEDBACK --- */
.copy-clone-btn {
  cursor: pointer;
}

.copy-clone-btn.copied {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile */
/* Mobile Optimization */
@media (max-width: 768px) {

  /* HERO */
  .hero-title {
    font-size: clamp(3.5rem, 14vw, 6rem) !important;
    line-height: 0.95;
  }

  .magnetic-area {
    bottom: 20%;
    transform: scale(0.9);
  }

  .hand-note {
    display: none;
    /* Hide complex annotations on small screens to reduce clutter */
  }

  /* MISSION - Center Spotlight */
  .mission-section {
    /* Fix spotlight to center for visibility */
    --x: 50% !important;
    --y: 50% !important;
  }

  .manifesto-container {
    /* Removed white block background */
    background: none;
  }

  .manifesto {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  /* MODULES */
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .module-card {
    min-height: auto;
    padding: 1.5rem;
  }

  /* PROJECTS */
  .project-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .p-visual {
    height: 250px;
    order: -1;
    /* Visual on top */
  }

  .p-id {
    font-size: 3rem;
  }

  /* HUMAN */
  .human-grid-3d {
    grid-template-columns: 1fr;
    height: auto;
    gap: 2rem;
    padding: 2rem 0;
  }

  .human-card-3d {
    height: 300px;
  }

  /* HUD */
  .sys-hud {
    left: 10px;
    bottom: 10px;
    padding: 8px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
  }

  /* Hide less critical HUD info */
  .sys-row:nth-child(1),
  .sys-row:nth-child(2) {
    display: none;
  }

  #audio-toggle {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  /* GENERAL */
  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  section,
  .marquee-section {
    padding: 4rem 1rem;
  }
}