/* Labs — Abyssal Technarium Styling
   Deep-sea research station: Victorian greenhouse + post-cyberpunk precision
   Forest-green/neon bioluminescent accents, chamfered geometry, glass+metal containment
*/

:root {
  /* Refined palette: subdued bioluminescent green with brass/copper warmth */
  --labs-neon: #4ade94;
  --labs-neon-dim: rgba(74, 222, 148, 0.65);
  --labs-neon-glow: rgba(74, 222, 148, 0.12);
  --labs-accent-warm: #c9a227;
  --labs-accent-copper: #b87333;
  --labs-abyss: #050a0e;
  --labs-deep: #0a1014;
  --labs-glass: rgba(12, 18, 24, 0.75);
  --labs-glass-border: rgba(74, 222, 148, 0.12);
  --labs-metal: rgba(45, 55, 65, 0.6);
  --labs-chrome: linear-gradient(140deg, rgba(74, 222, 148, 0.08), rgba(20, 40, 50, 0.3) 55%, rgba(10, 20, 30, 0.5));
  --labs-brass: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(184, 115, 51, 0.1));
}

/* Labs toggle button styling */
.view-toggle__btn--labs {
  position: relative;
}

.view-toggle__btn--labs.is-active {
  background: linear-gradient(120deg, rgba(74, 222, 148, 0.5), rgba(50, 140, 100, 0.4), rgba(201, 162, 39, 0.35));
  color: #050a0e;
  box-shadow:
    0 8px 22px rgba(74, 222, 148, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.view-toggle__btn--labs:not(.is-active):hover {
  color: var(--labs-neon-dim);
}

/* Labs body overrides */
body.labs-view {
  background:
    radial-gradient(circle at 22% 12%, rgba(20, 35, 50, 0.35), transparent 50%),
    radial-gradient(circle at 78% 18%, rgba(10, 20, 30, 0.5), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(74, 222, 148, 0.03), transparent 40%),
    linear-gradient(135deg, #030608 0%, #0a1014 45%, #050a0e 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

body.labs-view::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(74, 222, 148, 0.015), transparent 50%),
    radial-gradient(circle at 78% 8%, rgba(201, 162, 39, 0.02), transparent 45%),
    linear-gradient(145deg, rgba(5, 10, 15, 0.92), rgba(3, 6, 10, 0.95));
}

.labs-dot {
  background: var(--labs-neon) !important;
  box-shadow: 0 0 10px var(--labs-neon-glow);
}

/* Labs navigation */
.scene-nav--labs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.35rem;
  background: rgba(10, 16, 22, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 148, 0.1);
  box-shadow:
    inset 0 0 12px rgba(74, 222, 148, 0.03),
    0 5px 14px rgba(0, 0, 0, 0.4);
}

.labs-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.labs-pill strong {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--labs-neon);
}

.labs-pill span {
  color: rgba(255, 255, 255, 0.6);
}

/* Labs main container */
.labs-main {
  position: relative;
  min-height: 100vh;
  padding-top: 5rem;
}

.labs-grid-bg {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(74, 222, 148, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 148, 0.008) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.labs-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, rgba(74, 222, 148, 0.02), transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(201, 162, 39, 0.015), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.labs-pressure-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(5, 10, 15, 0.35) 50%,
    rgba(3, 6, 10, 0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Labs Hero */
.labs-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vh, 5rem);
  padding: clamp(4rem, 10vh, 8rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 4vh, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}

.labs-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.labs-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--labs-neon);
  margin: 0;
}

.labs-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(120deg, #fff 0%, rgba(180, 220, 200, 0.9) 40%, var(--labs-neon) 70%, var(--labs-accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.labs-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  line-height: 1.7;
  margin: 0;
}

.labs-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-labs-primary {
  background: linear-gradient(120deg, rgba(74, 222, 148, 0.75), rgba(50, 160, 110, 0.6), rgba(201, 162, 39, 0.5));
  color: #050a0e;
  border: 1px solid rgba(74, 222, 148, 0.35);
  box-shadow:
    0 12px 25px rgba(74, 222, 148, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-labs-primary:hover {
  box-shadow:
    0 16px 35px rgba(74, 222, 148, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-labs-ghost {
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: rgba(220, 200, 160, 0.8);
}

.btn-labs-ghost:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.4);
}

/* Specimen machine in hero */
.labs-hero__machine {
  display: flex;
  justify-content: center;
  width: 100%;
}

.labs-hero__machine .vending-machine {
  max-width: 860px;
  width: 100%;
}

/* Chamber decoration (legacy — kept for reference) */
.chamber-frame {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid rgba(201, 162, 39, 0.2);
  background: var(--labs-glass);
  box-shadow:
    inset 0 0 60px rgba(74, 222, 148, 0.04),
    inset 0 0 30px rgba(201, 162, 39, 0.03),
    0 25px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.chamber-glass {
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(74, 222, 148, 0.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201, 162, 39, 0.05), transparent 40%),
    linear-gradient(135deg, rgba(15, 22, 30, 0.85), rgba(8, 12, 18, 0.92));
  border: 1px solid rgba(201, 162, 39, 0.12);
}

.chamber-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: 
    radial-gradient(circle, rgba(74, 222, 148, 0.1), transparent 60%),
    radial-gradient(circle at 30% 40%, rgba(201, 162, 39, 0.08), transparent 50%);
  animation: chamberPulse 4s ease-in-out infinite;
}

.chamber-rivet {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 35% 35%, rgba(255, 240, 200, 0.5), rgba(201, 162, 39, 0.4) 50%, rgba(140, 100, 30, 0.7));
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.chamber-rivet--tl { top: 12px; left: 12px; }
.chamber-rivet--tr { top: 12px; right: 12px; }
.chamber-rivet--bl { bottom: 12px; left: 12px; }
.chamber-rivet--br { bottom: 12px; right: 12px; }

@keyframes chamberPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Section styling */
.labs-initiatives,
.labs-vending,
.labs-utility {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.labs-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.labs-depth-marker {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--labs-accent-warm);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.05);
  margin-bottom: 1rem;
}

.labs-section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.labs-section-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* Specimen cards */
.labs-specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.labs-specimen-card {
  position: relative;
}

.specimen-frame {
  position: relative;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(80, 100, 120, 0.2);
  background: var(--labs-glass);
  box-shadow:
    inset 0 0 30px rgba(74, 222, 148, 0.02),
    0 15px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.specimen-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.labs-specimen-card:hover .specimen-frame {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 30px rgba(74, 222, 148, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(201, 162, 39, 0.08);
}

.labs-specimen-card:hover .specimen-frame::before {
  opacity: 1;
}

.specimen-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--labs-neon);
  margin-bottom: 0.5rem;
}

.specimen-frame h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.specimen-frame p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  flex: 1;
}

.specimen-gauge {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(100, 120, 140, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
}

.gauge-label {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gauge-value {
  color: rgba(200, 180, 140, 0.75);
  letter-spacing: 0.1em;
}

.labs-specimen-card--highlight .specimen-frame {
  border-color: rgba(201, 162, 39, 0.25);
  background: linear-gradient(135deg, var(--labs-glass), rgba(30, 35, 45, 0.5));
}

/* ============================================
   BIO-VENDING MACHINE
   Vertical incubation dispensary — living values
   made manifest through harmonious action
   ============================================ */

/* Color tokens for bio-vending */
.bio-vending {
  --bv-void: #010204;
  --bv-void-blue: #020408;
  --bv-cyan: #4de8e0;
  --bv-aqua: #3dd4c0;
  --bv-phosphor: #4ade94;
  --bv-amber: #d4a030;
  --bv-gold: #e8c060;
  --bv-soft-white: rgba(220, 240, 255, 0.9);
  --bv-metal: rgba(60, 70, 85, 0.5);
  --bv-glass: rgba(12, 18, 26, 0.75);
  --bv-glass-highlight: rgba(77, 232, 224, 0.03);
}

.bio-vending {
  max-width: 520px;
  margin: 0 auto;
  perspective: 1200px;
  isolation: isolate;
}

/* ---- OUTER HOUSING ---- */
.bio-vending__housing {
  position: relative;
  background: 
    linear-gradient(180deg, 
      rgba(8, 12, 18, 0.97) 0%, 
      rgba(4, 6, 10, 0.98) 40%,
      rgba(2, 3, 5, 1) 100%);
  border-radius: 12px;
  padding: 0;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.8),
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Corner anchors - structural points */
.bio-vending__housing::before,
.bio-vending__housing::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(77, 232, 224, 0.5), transparent 70%);
  border-radius: 50%;
  z-index: 20;
  pointer-events: none;
}

.bio-vending__housing::before { top: 8px; left: 8px; }
.bio-vending__housing::after { top: 8px; right: 8px; }

/* Edge lighting - traces machine silhouette */
.bio-vending__edge {
  position: absolute;
  z-index: 15;
  pointer-events: none;
}

.bio-vending__edge--left,
.bio-vending__edge--right {
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(77, 232, 224, 0.2) 15%,
    rgba(61, 212, 192, 0.35) 50%, 
    rgba(77, 232, 224, 0.2) 85%,
    transparent 100%);
  animation: edgePulse 6s ease-in-out infinite;
}

.bio-vending__edge--left { left: 0; animation-delay: 0s; }
.bio-vending__edge--right { right: 0; animation-delay: -3s; }

@keyframes edgePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}

.bio-vending__edge--top,
.bio-vending__edge--bottom {
  height: 1px;
  width: 100%;
  left: 0;
}

.bio-vending__edge--top { 
  top: 0; 
  background: linear-gradient(90deg, 
    transparent 5%, 
    rgba(212, 160, 48, 0.3) 25%, 
    rgba(232, 192, 96, 0.5) 50%, 
    rgba(212, 160, 48, 0.3) 75%, 
    transparent 95%);
  animation: topArcTraverse 8s ease-in-out infinite;
}

@keyframes topArcTraverse {
  0%, 100% { opacity: 0.4; background-position: 0% 0; }
  50% { opacity: 0.7; background-position: 100% 0; }
}

.bio-vending__edge--bottom { 
  bottom: 0;
  background: linear-gradient(90deg, transparent 15%, rgba(77, 232, 224, 0.25) 50%, transparent 85%);
  opacity: 0.3;
}

/* Panel seams - modular construction */
.bio-vending__seam {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(60, 80, 100, 0.12) 15%, 
    rgba(77, 100, 120, 0.2) 50%, 
    rgba(60, 80, 100, 0.12) 85%, 
    transparent 100%);
  pointer-events: none;
  z-index: 12;
}

.bio-vending__seam--1 { top: 12%; }
.bio-vending__seam--2 { top: 78%; }
.bio-vending__seam--3 { top: 92%; }

/* Vertical column seams */
.bio-vending__seam--v1,
.bio-vending__seam--v2 {
  position: absolute;
  top: 12%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(60, 80, 100, 0.08) 20%,
    rgba(60, 80, 100, 0.12) 50%,
    rgba(60, 80, 100, 0.08) 80%,
    transparent 100%);
  pointer-events: none;
  z-index: 11;
}

.bio-vending__seam--v1 { left: 33.33%; }
.bio-vending__seam--v2 { right: 33.33%; }

/* ---- HEADER REGION ---- */
.bio-vending__header {
  position: relative;
  padding: 1rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(60, 80, 100, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: 
    linear-gradient(180deg, rgba(15, 20, 28, 0.85), rgba(8, 12, 18, 0.4)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(77, 232, 224, 0.008) 2px, rgba(77, 232, 224, 0.008) 4px);
  overflow: hidden;
}

/* Subtle scanline behind header */
.bio-vending__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px;
  opacity: 0.3;
  pointer-events: none;
}

/* Header rule/seam */
.bio-vending__header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 48, 0.25), transparent);
}

.bio-vending__designation {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bv-amber);
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.bio-vending__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.bio-vending__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bv-amber);
  box-shadow: 0 0 6px var(--bv-amber), 0 0 12px rgba(212, 160, 48, 0.3);
  animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.bio-vending__status-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bv-amber);
  animation: textPulse 4s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.bio-vending__count {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  animation: textPulse 5s ease-in-out infinite;
  animation-delay: -2s;
}

/* ---- VIEWPORT ARRAY ---- */
.bio-vending__viewport {
  position: relative;
  padding: 1.25rem;
  min-height: 340px;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(77, 232, 224, 0.025), transparent 55%),
    radial-gradient(ellipse at 25% 75%, rgba(74, 222, 148, 0.015), transparent 45%),
    radial-gradient(ellipse at 75% 60%, rgba(212, 160, 48, 0.01), transparent 40%),
    linear-gradient(180deg, var(--bv-void) 0%, rgba(1, 2, 3, 1) 100%);
  overflow: hidden;
}

/* Faint outer frame */
.bio-vending__viewport::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(77, 232, 224, 0.04);
  border-radius: 4px;
  pointer-events: none;
}

/* Particle atmosphere - multiple layers */
.bio-vending__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Multiple particle pseudo-elements */
.bio-vending__particles::before,
.bio-vending__particles::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 1.5px;
  background: rgba(77, 232, 224, 0.5);
  border-radius: 50%;
  box-shadow:
    40px 30px 0 rgba(77, 232, 224, 0.3),
    120px 50px 0 rgba(74, 222, 148, 0.25),
    200px 20px 0 rgba(77, 232, 224, 0.2),
    80px 80px 0 rgba(212, 160, 48, 0.2),
    160px 70px 0 rgba(74, 222, 148, 0.3),
    240px 40px 0 rgba(77, 232, 224, 0.25);
  animation: particleDrift 18s linear infinite;
}

.bio-vending__particles::before {
  left: 5%;
  top: 95%;
  animation-delay: 0s;
}

.bio-vending__particles::after {
  left: 50%;
  top: 100%;
  animation-delay: -9s;
  background: rgba(74, 222, 148, 0.4);
  box-shadow:
    30px 20px 0 rgba(212, 160, 48, 0.25),
    100px 40px 0 rgba(77, 232, 224, 0.3),
    180px 15px 0 rgba(74, 222, 148, 0.2),
    60px 60px 0 rgba(77, 232, 224, 0.25),
    140px 55px 0 rgba(212, 160, 48, 0.2);
}

@keyframes particleDrift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  5% { opacity: 0.7; }
  95% { opacity: 0.7; }
  100% { transform: translateY(-380px) translateX(15px); opacity: 0; }
}

/* Optical pathways - infrastructure lines */
.bio-vending__pathways {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(77, 232, 224, 0.015) 60%, rgba(77, 232, 224, 0.025) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 33%, rgba(77, 232, 224, 0.008) 33.5%, transparent 34%);
  opacity: 0.6;
}

/* Converging lines to base */
.bio-vending__pathways::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 30%;
  background: 
    linear-gradient(to bottom left, transparent 49%, rgba(77, 232, 224, 0.03) 50%, transparent 51%),
    linear-gradient(to bottom right, transparent 49%, rgba(77, 232, 224, 0.03) 50%, transparent 51%);
  opacity: 0.5;
}

/* Specimen array grid */
.bio-vending__array {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

/* ---- SPECIMEN CELLS ---- */
.specimen-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  contain: layout style;
}

.specimen-cell__boundary {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(77, 232, 224, 0.1);
  background: 
    radial-gradient(ellipse at 50% 30%, var(--bv-glass-highlight), transparent 60%),
    var(--bv-glass);
  transition: all 0.5s ease;
  overflow: hidden;
  /* Depth layers */
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Deep background noise texture */
.specimen-cell__boundary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: 
    radial-gradient(circle at 50% 50%, rgba(77, 232, 224, 0.04), transparent 65%);
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

/* Corner anchors - structural joints */
.specimen-cell__boundary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background:
    radial-gradient(circle at 4px 4px, rgba(77, 232, 224, 0.25) 0%, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) 4px, rgba(77, 232, 224, 0.25) 0%, transparent 3px),
    radial-gradient(circle at 4px calc(100% - 4px), rgba(77, 232, 224, 0.2) 0%, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), rgba(77, 232, 224, 0.2) 0%, transparent 3px);
  pointer-events: none;
  opacity: 0.6;
}

/* Caustic light patterns on glass surface */
.specimen-cell__caustics {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  background: 
    conic-gradient(from 0deg at 25% 25%, transparent 0deg, rgba(77, 232, 224, 0.025) 45deg, transparent 90deg),
    conic-gradient(from 180deg at 75% 75%, transparent 0deg, rgba(74, 222, 148, 0.015) 30deg, transparent 60deg);
  opacity: 0.4;
  transition: opacity 0.5s ease;
  pointer-events: none;
  animation: causticShift 12s ease-in-out infinite;
}

@keyframes causticShift {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.02); }
}

.specimen-cell__label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 6;
}

.specimen-cell__locked-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: rgba(212, 160, 48, 0.25);
  z-index: 5;
  text-shadow: 0 0 10px rgba(212, 160, 48, 0.2);
}

/* Cell hover states - CONTAINED */
.specimen-cell:hover .specimen-cell__boundary {
  border-color: rgba(77, 232, 224, 0.28);
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(77, 232, 224, 0.06), transparent 55%),
    var(--bv-glass);
  box-shadow:
    inset 0 0 25px rgba(77, 232, 224, 0.06),
    inset 0 0 40px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(77, 232, 224, 0.08);
}

.specimen-cell:hover .specimen-cell__boundary::before {
  opacity: 1;
}

.specimen-cell:hover .specimen-cell__caustics {
  opacity: 0.8;
}

.specimen-cell:hover .specimen-cell__label {
  opacity: 1;
  color: rgba(255, 255, 255, 0.4);
}

/* CONTAINED hover - max scale 1.05 */
.specimen-cell:hover .specimen {
  transform: translate(-50%, -50%) scale(1.05);
}

.specimen-cell:hover .specimen__glow {
  opacity: 0.5;
}

/* Tier-specific styling - light character differentiates tiers */
/* Tier 1: Welcoming, steady, accessible */
.specimen-cell--tier1 .specimen { 
  --specimen-color: var(--bv-cyan); 
  --specimen-pulse: 5s;
  --specimen-glow-size: 90%;
}

/* Tier 2: Deeper, slower, worth the focus */
.specimen-cell--tier2 .specimen { 
  --specimen-color: var(--bv-phosphor); 
  --specimen-pulse: 6.5s;
  --specimen-glow-size: 85%;
}

/* Tier 3: Intense, contained, costs something */
.specimen-cell--tier3 .specimen { 
  --specimen-color: var(--bv-amber); 
  --specimen-pulse: 8s;
  --specimen-glow-size: 80%;
}

.specimen-cell--tier2 .specimen-cell__boundary {
  border-color: rgba(74, 222, 148, 0.08);
}

.specimen-cell--tier2 .specimen-cell__boundary::after {
  background:
    radial-gradient(circle at 4px 4px, rgba(74, 222, 148, 0.2) 0%, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) 4px, rgba(74, 222, 148, 0.2) 0%, transparent 3px),
    radial-gradient(circle at 4px calc(100% - 4px), rgba(74, 222, 148, 0.15) 0%, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), rgba(74, 222, 148, 0.15) 0%, transparent 3px);
}

.specimen-cell--tier3 .specimen-cell__boundary {
  border-color: rgba(212, 160, 48, 0.08);
}

.specimen-cell--tier3 .specimen-cell__boundary::after {
  background:
    radial-gradient(circle at 4px 4px, rgba(212, 160, 48, 0.2) 0%, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) 4px, rgba(212, 160, 48, 0.2) 0%, transparent 3px),
    radial-gradient(circle at 4px calc(100% - 4px), rgba(212, 160, 48, 0.15) 0%, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), rgba(212, 160, 48, 0.15) 0%, transparent 3px);
}

/* Tier-specific hover - all contained */
.specimen-cell--tier2:hover .specimen-cell__boundary {
  border-color: rgba(74, 222, 148, 0.25);
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(74, 222, 148, 0.05), transparent 55%),
    var(--bv-glass);
  box-shadow: 
    inset 0 0 25px rgba(74, 222, 148, 0.05), 
    inset 0 0 40px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(74, 222, 148, 0.06);
}

.specimen-cell--tier3:hover .specimen-cell__boundary {
  border-color: rgba(212, 160, 48, 0.28);
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(212, 160, 48, 0.06), transparent 55%),
    var(--bv-glass);
  box-shadow: 
    inset 0 0 25px rgba(212, 160, 48, 0.06), 
    inset 0 0 40px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(212, 160, 48, 0.08);
}

.specimen-cell--locked {
  cursor: not-allowed;
}

.specimen-cell--locked .specimen-cell__boundary {
  background: rgba(8, 12, 18, 0.85);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.specimen-cell--locked:hover .specimen-cell__boundary {
  border-color: rgba(212, 160, 48, 0.12);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ---- SPECIMENS ---- */
/* Living values made manifest - divine geometries at the intersection of existence */
.specimen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45%;
  height: 45%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.specimen__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, 
    rgba(255, 255, 255, 0.9) 0%,
    var(--specimen-color) 30%, 
    transparent 70%);
  animation: corePulse var(--specimen-pulse, 5s) ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1); 
    filter: brightness(1);
  }
  50% { 
    opacity: 0.95; 
    transform: translate(-50%, -50%) scale(1.08); 
    filter: brightness(1.15);
  }
}

.specimen__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--specimen-glow-size, 90%);
  height: var(--specimen-glow-size, 90%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--specimen-color) 0%, transparent 55%);
  opacity: 0.25;
  filter: blur(6px);
  transition: opacity 0.5s ease;
  animation: glowBreath var(--specimen-pulse, 5s) ease-in-out infinite;
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.05); }
}

/* Specimen variations - Radial (vertical glow with wavering tendrils) */
.specimen[data-specimen="radial"] .specimen__tendril {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 55%;
  background: linear-gradient(180deg, var(--specimen-color) 0%, rgba(255,255,255,0.3) 40%, transparent 100%);
  transform-origin: center top;
  opacity: 0.5;
  filter: blur(0.5px);
}

.specimen__tendril--1 { 
  transform: translate(-50%, 0) rotate(0deg); 
  animation: tendrilWaver1 6s ease-in-out infinite;
}
.specimen__tendril--2 { 
  transform: translate(-50%, 0) rotate(120deg); 
  animation: tendrilWaver2 7s ease-in-out infinite;
  animation-delay: -2s;
}
.specimen__tendril--3 { 
  transform: translate(-50%, 0) rotate(240deg); 
  animation: tendrilWaver3 8s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes tendrilWaver1 {
  0%, 100% { transform: translate(-50%, 0) rotate(-3deg); opacity: 0.4; }
  25% { transform: translate(-50%, 0) rotate(5deg); opacity: 0.6; }
  50% { transform: translate(-50%, 0) rotate(2deg); opacity: 0.5; }
  75% { transform: translate(-50%, 0) rotate(-5deg); opacity: 0.55; }
}

@keyframes tendrilWaver2 {
  0%, 100% { transform: translate(-50%, 0) rotate(117deg); opacity: 0.45; }
  33% { transform: translate(-50%, 0) rotate(125deg); opacity: 0.6; }
  66% { transform: translate(-50%, 0) rotate(115deg); opacity: 0.5; }
}

@keyframes tendrilWaver3 {
  0%, 100% { transform: translate(-50%, 0) rotate(237deg); opacity: 0.5; }
  40% { transform: translate(-50%, 0) rotate(245deg); opacity: 0.55; }
  80% { transform: translate(-50%, 0) rotate(235deg); opacity: 0.45; }
}

/* Specimen variations - Cluster (orbiting spheres in slow relationship) */
.specimen[data-specimen="cluster"] .specimen__orb {
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, 
    rgba(255, 255, 255, 0.7) 0%,
    var(--specimen-color) 40%, 
    transparent 70%);
}

.specimen__orb--1 { 
  top: 8%; 
  left: 50%; 
  animation: orbDrift1 8s ease-in-out infinite;
}
.specimen__orb--2 { 
  bottom: 18%; 
  left: 12%; 
  animation: orbDrift2 9s ease-in-out infinite;
  animation-delay: -3s;
}
.specimen__orb--3 { 
  bottom: 18%; 
  right: 12%; 
  animation: orbDrift3 7s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.55; }
  30% { transform: translateX(-45%) translateY(-3px) scale(1.05); opacity: 0.7; }
  60% { transform: translateX(-55%) translateY(2px) scale(0.95); opacity: 0.6; }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translateY(0) translateX(0) scale(0.95); opacity: 0.5; }
  40% { transform: translateY(-4px) translateX(3px) scale(1); opacity: 0.65; }
  70% { transform: translateY(2px) translateX(-2px) scale(1.02); opacity: 0.55; }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.55; }
  35% { transform: translateY(3px) translateX(-3px) scale(0.98); opacity: 0.6; }
  65% { transform: translateY(-2px) translateX(2px) scale(1.03); opacity: 0.7; }
}

/* Specimen variations - Spore (concentric rings rotating at different speeds) */
.specimen[data-specimen="spore"] .specimen__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--specimen-color);
}

.specimen__ring--inner { 
  width: 50%; 
  height: 50%; 
  animation: ringInner 12s linear infinite, ringBreath 6s ease-in-out infinite;
  opacity: 0.5;
}

.specimen__ring--outer { 
  width: 80%; 
  height: 80%; 
  animation: ringOuter 18s linear infinite, ringBreath 8s ease-in-out infinite;
  animation-delay: -3s;
  opacity: 0.35;
}

@keyframes ringInner {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringOuter {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes ringBreath {
  0%, 100% { opacity: 0.3; border-width: 1px; }
  50% { opacity: 0.55; border-width: 1.5px; }
}

/* Specimen variations - Helix (intertwined strands with light traveling) */
.specimen[data-specimen="helix"] .specimen__strand {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 1.5px;
  height: 90%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--specimen-color) 20%, 
    rgba(255,255,255,0.6) 50%,
    var(--specimen-color) 80%, 
    transparent 100%);
  opacity: 0.45;
  filter: blur(0.3px);
}

.specimen__strand--1 { 
  transform: translateX(-6px); 
  animation: helixWave1 10s ease-in-out infinite;
}
.specimen__strand--2 { 
  transform: translateX(5px); 
  animation: helixWave2 10s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes helixWave1 {
  0%, 100% { 
    transform: translateX(-6px) scaleX(1); 
    opacity: 0.4;
    background-position: 0 0;
  }
  50% { 
    transform: translateX(-4px) scaleX(1.2); 
    opacity: 0.6;
    background-position: 0 100%;
  }
}

@keyframes helixWave2 {
  0%, 100% { 
    transform: translateX(5px) scaleX(1); 
    opacity: 0.45;
    background-position: 0 100%;
  }
  50% { 
    transform: translateX(3px) scaleX(1.15); 
    opacity: 0.55;
    background-position: 0 0;
  }
}

/* Specimen variations - Nova (amber orb with internal light shift and caustic ripples) */
.specimen[data-specimen="nova"] .specimen__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 1px solid var(--specimen-color);
  animation: novaPulseWave 4s ease-out infinite;
}

@keyframes novaPulseWave {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.specimen[data-specimen="nova"] .specimen__corona {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: conic-gradient(from 0deg, 
    transparent 0deg, 
    rgba(255, 200, 100, 0.3) 60deg, 
    transparent 120deg,
    rgba(255, 180, 80, 0.2) 180deg,
    transparent 240deg,
    rgba(255, 200, 100, 0.25) 300deg,
    transparent 360deg);
  border-radius: 50%;
  opacity: 0.4;
  animation: coronaSpin 20s linear infinite, coronaShift 8s ease-in-out infinite;
  filter: blur(1.5px);
}

@keyframes coronaSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coronaShift {
  0%, 100% { opacity: 0.3; filter: blur(1.5px); }
  50% { opacity: 0.5; filter: blur(2px); }
}

/* Dormant specimen - awaiting manifestation */
.specimen--dormant .specimen__core {
  background: radial-gradient(circle, rgba(80, 90, 100, 0.25) 0%, transparent 70%);
  animation: dormantPulse 10s ease-in-out infinite;
  opacity: 0.2;
}

@keyframes dormantPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.25; }
}

.specimen--dormant .specimen__glow {
  opacity: 0.05;
  animation: none;
}

/* ---- BASE MECHANISM ---- */
.bio-vending__base {
  position: relative;
  padding: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(2, 3, 5, 0.6), rgba(1, 2, 3, 0.95));
  border-top: 1px solid rgba(60, 80, 100, 0.12);
}

/* Infrastructure lines converging to center */
.bio-vending__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: 
    linear-gradient(to bottom left, transparent 48%, rgba(77, 232, 224, 0.03) 50%, transparent 52%),
    linear-gradient(to bottom right, transparent 48%, rgba(77, 232, 224, 0.03) 50%, transparent 52%);
  pointer-events: none;
  opacity: 0.6;
}

.bio-vending__output {
  position: relative;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(77, 232, 224, 0.1);
  text-align: center;
  overflow: hidden;
}

.bio-vending__output-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(77, 232, 224, 0.08), transparent 65%);
  pointer-events: none;
  animation: outputGlow 5s ease-in-out infinite;
}

@keyframes outputGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.bio-vending__output-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
}

.bio-vending__acquire {
  position: relative;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 160, 48, 0.18);
  background: 
    linear-gradient(180deg, rgba(212, 160, 48, 0.06), rgba(212, 160, 48, 0.02)),
    linear-gradient(180deg, rgba(15, 18, 25, 0.9), rgba(10, 12, 18, 0.95));
  color: var(--bv-amber);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: all 0.4s ease;
  overflow: hidden;
  /* Bevel effect */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.bio-vending__acquire:disabled {
  opacity: 0.55;
}

.bio-vending__acquire-text {
  position: relative;
  z-index: 2;
}

.bio-vending__acquire-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 48, 0.15), transparent);
  animation: acquireGlowSweep 4s ease-in-out infinite;
}

@keyframes acquireGlowSweep {
  0%, 15% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ---- NOTE ---- */
.bio-vending__note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 560px) {
  .bio-vending__array {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  
  .bio-vending__header {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
  }
  
  .bio-vending__designation {
    font-size: 0.5rem;
    letter-spacing: 0.25em;
  }
  
  .bio-vending__count {
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
  
  .bio-vending__viewport {
    padding: 1rem;
  }
  
  .bio-vending__base {
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .specimen,
  .specimen__core,
  .specimen__glow,
  .specimen__tendril,
  .specimen__orb,
  .specimen__ring,
  .specimen__strand,
  .specimen__pulse,
  .specimen__corona,
  .bio-vending__particles::before,
  .bio-vending__particles::after,
  .bio-vending__edge,
  .bio-vending__status-dot,
  .specimen-cell__caustics {
    animation: none !important;
  }
  
  .specimen__core {
    opacity: 0.7;
  }
  
  .specimen__glow {
    opacity: 0.25;
  }
  
  .specimen-cell:hover .specimen {
    transform: translate(-50%, -50%);
  }
}

/* Utility roadmap */
.utility-roadmap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.utility-tier {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(80, 100, 120, 0.18);
  background: var(--labs-glass);
  transition: all 0.3s ease;
}

.utility-tier:hover {
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(25, 30, 40, 0.55);
}

.utility-gauge {
  width: 60px;
  text-align: center;
}

.gauge-depth {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--labs-neon);
  padding: 0.5rem;
  border: 1px solid rgba(74, 222, 148, 0.15);
  border-radius: 4px;
  background: rgba(74, 222, 148, 0.05);
}

.utility-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.utility-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* Labs footer */
.labs-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--labs-glass-border);
  background: rgba(5, 15, 12, 0.8);
  margin-top: 0;
}

.labs-footer__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.labs-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: 'Space Mono', monospace;
}

.labs-stat__label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.labs-stat strong {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(200, 180, 140, 0.8);
}

.labs-return {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 148, 0.15);
  background: rgba(74, 222, 148, 0.04);
  color: var(--labs-neon-dim);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.labs-return:hover {
  background: rgba(74, 222, 148, 0.1);
  border-color: rgba(74, 222, 148, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 222, 148, 0.1);
}

.labs-return svg {
  transition: transform 0.3s ease;
}

.labs-return:hover svg {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .labs-hero {
    text-align: center;
    padding-top: 2rem;
  }

  .labs-hero__content {
    align-items: center;
  }

  .labs-lede {
    margin: 0 auto;
  }

  .labs-footer {
    flex-direction: column;
    gap: 1.5rem;
  }

  .labs-footer__stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Labs tech section — initiative tiles on labs page */
.labs-tech-section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.labs-tech-section .tech-approaches {
  width: 100%;
  margin: 0 auto;
}

.labs-tech-section .tech-card {
  background: var(--labs-glass);
  border-color: rgba(80, 100, 120, 0.18);
  box-shadow:
    inset 0 0 30px rgba(74, 222, 148, 0.03),
    0 15px 40px rgba(0, 0, 0, 0.3);
}

.labs-tech-section .tech-card:hover {
  border-color: rgba(74, 222, 148, 0.35);
}

.labs-tech-section .tech-card::before {
  background: radial-gradient(circle, rgba(74, 222, 148, 0.06), transparent 55%);
}

.labs-tech-section .tech-card .tag {
  color: var(--labs-neon) !important;
}

.labs-tech-section .tech-card__link {
  border-color: rgba(74, 222, 148, 0.25);
  background: rgba(74, 222, 148, 0.05);
  color: var(--labs-neon-dim);
}

.labs-tech-section .tech-card__link:hover {
  border-color: rgba(74, 222, 148, 0.5);
  background: rgba(74, 222, 148, 0.12);
  color: rgba(200, 255, 230, 0.9);
}

/* Labs frame for tech-approaches on landing page */
.labs-frame {
  position: relative;
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.15);
  background: 
    linear-gradient(135deg, rgba(15, 20, 28, 0.5), rgba(10, 14, 20, 0.65));
  box-shadow:
    inset 0 0 30px rgba(201, 162, 39, 0.02),
    0 15px 40px rgba(0, 0, 0, 0.3);
}

.labs-frame::before {
  content: 'LABS';
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--labs-accent-warm);
  padding: 0.2rem 0.6rem;
  background: var(--labs-abyss);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 4px;
}

.labs-frame .tech-card {
  background: rgba(12, 16, 22, 0.85);
  border-color: rgba(80, 100, 120, 0.15);
}

.labs-frame .tech-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
}

.labs-frame .tech-card::before {
  background: radial-gradient(circle, rgba(201, 162, 39, 0.06), transparent 55%);
}

.labs-frame .tag {
  color: var(--labs-accent-warm) !important;
}

.labs-frame .tech-card__link {
  border-color: rgba(201, 162, 39, 0.25);
  background: rgba(201, 162, 39, 0.05);
  color: rgba(220, 200, 160, 0.8);
}

.labs-frame .tech-card__link:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.12);
  color: rgba(255, 240, 200, 0.9);
}

/* Visit Labs tile special styling */
.tech-card--visit-labs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-card--visit-labs h3 {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin: 0;
  background: linear-gradient(120deg, #fff, var(--labs-accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tech-card--visit-labs .visit-arrow {
  margin-top: 0.75rem;
  width: 32px;
  height: 32px;
  stroke: var(--labs-accent-warm);
  transition: transform 0.3s ease;
}

.tech-card--visit-labs:hover .visit-arrow {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .labs-frame {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .labs-frame {
    padding: 1rem;
  }
}

/* Tech card detail panels — expandable depth content */
.tech-card__status {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  background: rgba(74, 222, 148, 0.08);
  border: 1px solid rgba(74, 222, 148, 0.2);
  color: var(--labs-neon-dim);
  margin-top: 0.4rem;
}

.tech-card__expand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.35em 0.7em;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 200, 220, 0.6);
  background: none;
  border: 1px solid rgba(80, 100, 120, 0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tech-card__expand:hover {
  color: var(--labs-neon-dim);
  border-color: rgba(74, 222, 148, 0.3);
  background: rgba(74, 222, 148, 0.04);
}

.tech-card__expand svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.tech-card.is-expanded .tech-card__expand svg {
  transform: rotate(180deg);
}

.tech-card__expand-label--more,
.tech-card.is-expanded .tech-card__expand-label--less { display: inline; }
.tech-card__expand-label--less,
.tech-card.is-expanded .tech-card__expand-label--more { display: none; }

.tech-card__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.35s ease;
  margin-top: 0;
}

.tech-card.is-expanded .tech-card__detail {
  max-height: 600px;
  opacity: 1;
  margin-top: 1rem;
}

.tech-card__detail-inner {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(74, 222, 148, 0.1);
}

.tech-card__detail-summary {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(200, 215, 230, 0.75);
  margin: 0 0 0.75rem;
}

.tech-card__detail-points {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.tech-card__detail-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(180, 200, 220, 0.7);
  margin-bottom: 0.35rem;
}

.tech-card__detail-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--labs-neon);
  opacity: 0.5;
}

.tech-card__detail-relations {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(160, 180, 200, 0.55);
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(74, 222, 148, 0.06);
  margin: 0;
}

.tech-card__detail-relations strong {
  color: rgba(74, 222, 148, 0.6);
  font-weight: 500;
  font-style: normal;
}

/* Labs Metridium Garden */
.labs-garden {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vh, 500px);
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 0;
}

.labs-garden__ocean {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 18, 0.3) 30%, rgba(3, 7, 14, 0.85) 100%);
}

.labs-garden__haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(96, 144, 184, 0.05), transparent),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(111, 196, 255, 0.03), transparent);
  pointer-events: none;
}

.labs-garden__field {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

.labs-anemone-belt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.labs-belt--rear  { z-index: 1; opacity: 0.5; isolation: isolate; }
.labs-belt--mid   { z-index: 2; opacity: 0.65; isolation: isolate; }
.labs-belt--hero  { z-index: 3; isolation: isolate; filter: drop-shadow(0 0 14px rgba(111, 196, 255, 0.04)); }
.labs-belt--accent { z-index: 4; opacity: 0.85; isolation: isolate; }

.labs-anemone {
  position: absolute;
  bottom: 0;
  left: var(--x);
  transform: translateX(-50%);
  width: var(--w);
  height: var(--h);
  animation: labsSway var(--sway-dur, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: bottom center;
  filter: var(--depth-blur, none);
  opacity: var(--op, 1);
}

.labs-anemone svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 0 8px rgba(111, 196, 255, 0.12))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

.labs-anemone::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 46, 52, 0.45), rgba(6, 5, 4, 0));
  filter: blur(6px);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}

@keyframes labsSway {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(0.8deg); }
  75% { transform: translateX(-50%) rotate(-0.8deg); }
}
