/* =============== Responsive =============== */
@media (max-width: 1100px) {
  .footer-socials-row {
    grid-template-columns: 1fr;
  }
  .social-link {
    border-right: none;
    border-bottom: 1px solid rgba(20, 28, 26, 0.1);
    padding-left: 0;
  }
  .social-link:last-child {
    border-bottom: none;
  }
  .human-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 960px) {
  /* Nav collapse */
  .navbar {
    grid-template-columns: 1fr auto;
  }
  .nav-center {
    display: none;
  }
  .nav-status {
    display: none;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-sub,
  .content-grid,
  .block-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }
  .pillar:last-child {
    border-bottom: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .stats .stat-sep {
    display: none;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  .strategy-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .spinning-badge {
    align-self: flex-end;
  }
  .cursor,
  .cursor-follow {
    display: none;
  }
  body {
    cursor: auto;
  }
  button {
    cursor: pointer;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .human-gallery {
    aspect-ratio: 1 / 1.1;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 7rem;
  }
  .hero-meta {
    flex-wrap: wrap;
  }
  .btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.82rem;
  }
  .nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.72rem;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .modal-header {
    padding: 1.25rem 1.25rem 0.85rem;
  }
  .modal-card {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}

/* Mobile legibility — text contrast on top of shader */
@media (max-width: 900px) {
  .hero-title {
    color: #fffbf1;
    text-shadow:
      0 2px 28px rgba(8, 12, 11, 0.75),
      0 1px 3px rgba(8, 12, 11, 0.5);
    font-weight: 500;
  }
  .hero-title .italic {
    color: #f8eccf;
  }
  .hero-lede {
    color: rgba(255, 248, 232, 0.92);
    text-shadow: 0 1px 14px rgba(8, 12, 11, 0.7);
  }
  .hero-lede::first-line {
    color: #fffbf1;
  }
  .hero-eyebrow,
  .hero-meta,
  .hero-role {
    color: rgba(255, 248, 232, 0.82);
    text-shadow: 0 1px 10px rgba(8, 12, 11, 0.6);
  }
  .hero-meta .dot-sep {
    color: rgba(255, 248, 232, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Glassmorphism System & Holographic Console */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.glass-panel {
  background: rgba(14, 21, 19, 0.45);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(201, 168, 107, 0.15);
  border-radius: 12px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Mouse hover shine / specular highlight */
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(243, 233, 210, 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-panel:hover::before {
  opacity: 1;
}

.glass-panel:hover {
  border-color: rgba(201, 168, 107, 0.35);
  box-shadow: 
    0 15px 45px rgba(201, 168, 107, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Hologram Console Specifics */
.hc-hologram-console {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(14, 21, 19, 0.35);
  border: 1px solid rgba(201, 168, 107, 0.1);
  overflow: visible;
  padding: 1.5rem;
  z-index: 10;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 168, 107, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glow-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: consolePulse 1.5s ease-in-out infinite alternate;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-cream);
}

.system-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.console-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 1.5rem;
  align-items: stretch;
}

.console-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(201, 168, 107, 0.08);
  padding-bottom: 0.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.metric-row .label {
  color: var(--text-dim);
}

.metric-row .val {
  color: var(--accent-cream);
  font-weight: 500;
}

.metric-row .val.status-ok {
  color: #6acb8f;
  text-shadow: 0 0 10px rgba(106, 203, 143, 0.3);
}

/* Center Visualizer Panel */
.center-panel {
  min-height: 380px;
  background: rgba(14, 21, 19, 0.15) !important;
  border: 1px dashed rgba(201, 168, 107, 0.15) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-visualizer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 233, 210, 0.5), transparent);
  box-shadow: 0 0 15px rgba(243, 233, 210, 0.4);
  top: 0;
  left: 0;
  animation: scanLine 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanLine {
  0% { top: 0%; }
  100% { top: 100%; }
}

.visualizer-target {
  position: relative;
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 168, 107, 0.05);
}

.corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent-gold);
}
.corner-bracket.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-bracket.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-bracket.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-bracket.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.visualizer-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-top: 180px;
  z-index: 3;
}

.console-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 168, 107, 0.1);
  text-align: center;
}

.glow-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(201, 168, 107, 0.35);
  animation: textBreathe 3s ease-in-out infinite alternate;
}

@keyframes consolePulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes textBreathe {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* head glows */
h1.hero-title, h2.section-title {
  text-shadow: 0 0 35px rgba(201, 168, 107, 0.15);
}

/* Mobile responsiveness for console */
@media (max-width: 960px) {
  .console-grid {
    grid-template-columns: 1fr;
  }
  .center-panel {
    min-height: 280px;
  }
  .hc-hologram-console {
    width: 95%;
  }
}
/* =========================================
   TASK 1: HERO TYPOGRAPHY & BOX
   ========================================= */
.text-chroma {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaFlow 4s linear infinite;
  display: inline-block;
  padding: 0 5px;
  position: relative;
}

@keyframes chromaFlow {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.text-marker {
  position: relative;
  display: inline-block;
  color: var(--text-main);
  z-index: 1;
}
.text-marker::before {
  content: '';
  position: absolute;
  left: -5%;
  bottom: 0%;
  width: 110%;
  height: 60%;
  background-color: var(--accent);
  opacity: 0.8;
  z-index: -1;
  transform: rotate(-2deg);
  border-radius: 2px 8px 3px 6px;
  mix-blend-mode: color-burn;
}
.theme-dark .text-marker::before {
  background-color: rgba(201,168,107,0.7);
  mix-blend-mode: screen;
}

.hero-glass-box {
  background: rgba(14, 21, 19, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 650px;
  margin-top: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 2px 20px rgba(255,255,255,0.05);
  position: relative;
  overflow: visible;
}
.hg-micro {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-gold);
  opacity: 0.8;
  z-index: 10;
}
.hg-tl { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.hg-tr { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.hg-bl { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.hg-br { bottom: -5px; right: -5px; border-left: none; border-top: none; }
.hero-glass-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,107,0.8), transparent);
}
.hero-glass-box .hero-lede {
  margin-bottom: 0;
  max-width: 100%;
}



/* =========================================
   TASK 4: TEXTURED SECTIONS
   ========================================= */
.textured-section {
  position: relative;
  background-color: transparent !important;
  color: #f1f1f1 !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.textured-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%220.08%22/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 0;
}
.textured-section > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 1rem;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
  .nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  /* Eyebrow / Marquee */
  .hero-eyebrow {
    display: none;
  }

  /* Designer Pill Box */
  .hero-role {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    white-space: normal;
    text-align: center;
  }

  /* Lede Box */
  .hero-glass-box {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  .hero-lede {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Hero Sub Layout */
  .hero-sub {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  /* CTA Buttons */
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 1rem;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}
