/* Homepage — the front door of the lab */
/* Hero with biolume canvas, drifting art strip, bento lab grid */

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: none;
}

#biolume {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  max-width: 880px;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 2.2rem;
}

/* Staggered arrival — the lab lights coming on */
.hero-eyebrow,
.hero-title,
.hero-ethos,
.hero-whisper,
.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title   { animation-delay: 0.12s; }
.hero-ethos   { animation-delay: 0.28s; }
.hero-whisper { animation-delay: 0.46s; }
.hero-cta     { animation-delay: 0.62s; }

/* The whisper is a door. It doesn't announce itself — it just glitches
   a little harder when you get close. */
a.hero-whisper {
  display: block;
  text-decoration: none;
}

a.hero-whisper:hover {
  text-shadow:
    1px 0 0 rgba(240, 127, 194, 0.7),
    -1px 0 0 rgba(76, 201, 201, 0.7);
  animation-duration: 0.8s;
}

/* Quiet, glowing pill — the lab door, not a marketing button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-lab);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--dream-teal-bright);
  text-decoration: none;
  padding: 14px 30px;
  border: 1px solid rgba(76, 201, 201, 0.45);
  border-radius: var(--radius-hero-button);
  background: rgba(38, 153, 153, 0.07);
  transition: var(--transition-default);
}

.hero-cta .spiral {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta:hover {
  border-color: var(--dream-teal-bright);
  background: rgba(38, 153, 153, 0.14);
  box-shadow: 0 0 32px rgba(38, 153, 153, 0.25);
}

.hero-cta:hover .spiral {
  transform: rotate(360deg);
}

/* The field takes cues from the real sky; this is the quiet tell */
.lab-conditions {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-lab);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  opacity: 0.55;
  white-space: nowrap;
}

/* ---------- Archive strip ---------- */

.archive {
  padding: 40px 0 90px;
}

.archive-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 28px;
}

.archive-label .soon {
  font-family: var(--font-lab);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--myco-red-bright);
  text-decoration: none;
  transition: color 0.25s ease;
}

.archive-label .soon::after {
  content: ' \2192';
  display: inline-block;
  transition: transform 0.25s ease;
}

a.soon:hover {
  color: var(--dream-teal-bright);
}

a.soon:hover::after {
  transform: translateX(4px);
}

.drift {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.drift-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 10px 0 18px;
  animation: driftLeft 75s linear infinite;
}

.drift:hover .drift-track {
  animation-play-state: paused;
}

.specimen {
  margin: 0;
  flex-shrink: 0;
}

.specimen img {
  display: block;
  height: 230px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  filter: saturate(0.92) brightness(0.94);
  transition: filter 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.specimen:nth-child(odd) img  { transform: rotate(-1.1deg); }
.specimen:nth-child(even) img { transform: rotate(1.1deg); }

.specimen:hover img {
  filter: saturate(1.05) brightness(1.05);
  border-color: rgba(76, 201, 201, 0.5);
  transform: rotate(0deg) scale(1.02);
}

.specimen figcaption {
  font-family: var(--font-lab);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-top: 10px;
  padding-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .drift {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
    mask-image: linear-gradient(90deg, #000 94%, transparent);
  }
  .drift::-webkit-scrollbar {
    display: none;
  }
  .drift-track {
    animation: none;
  }
}

/* Reduced motion: everything arrives already lit; nothing drifts or pulses.
   Kept at the end of the file so these outrank the rules above. */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-ethos,
  .hero-whisper,
  .hero-cta {
    animation: none;
    opacity: 1;
  }

  .lab-card-label .dot.live {
    animation: none;
  }

  .lab-card:hover {
    transform: none;
  }

  .hero-cta:hover .spiral {
    transform: none;
  }

  .specimen:nth-child(odd) img,
  .specimen:nth-child(even) img {
    transform: none;
  }
}

/* ---------- The lab grid ---------- */

.lab {
  padding: 60px 0 120px;
}

.lab .section-title,
.lab .section-subtitle {
  text-align: left;
  margin-left: 0;
}

.lab-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.lab-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* Each room in the lab glows its own color */
.lab-card {
  --accent: var(--dream-teal-bright);
  --accent-soft: rgba(76, 201, 201, 0.16);
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 218px;
  padding: 26px 28px;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 110% 90% at 12% 0%, var(--accent-soft), transparent 55%),
    var(--bg-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}

.lab-card[data-accent="teal"]   { --accent: var(--dream-teal-bright);    --accent-soft: rgba(76, 201, 201, 0.17); }
.lab-card[data-accent="fern"]   { --accent: var(--electric-fern-bright); --accent-soft: rgba(62, 207, 133, 0.16); }
.lab-card[data-accent="amber"]  { --accent: var(--neural-amber);         --accent-soft: rgba(255, 204, 102, 0.13); }
.lab-card[data-accent="pink"]   { --accent: var(--jellyfish-pink);       --accent-soft: rgba(240, 127, 194, 0.16); }
.lab-card[data-accent="myco"]   { --accent: var(--myco-red-bright);      --accent-soft: rgba(224, 92, 92, 0.15); }
.lab-card[data-accent="ghost"]  { --accent: #cfe8e4;                     --accent-soft: rgba(207, 232, 228, 0.12); }

.lab-card.span-4 {
  grid-column: span 4;
}

/* Letterbox card — a cinema-shaped door for the projection room */
.lab-card.span-6 {
  grid-column: span 6;
}

.lab-card-wide {
  min-height: 0;
  padding: 22px 28px;
}

.lab-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.35), 0 0 36px var(--accent-soft);
}

.lab-card-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-lab);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.lab-card-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent); /* currentColor for the pulse glow */
  box-shadow: 0 0 6px var(--accent);
}

.lab-card-label .dot.live {
  animation: pulseDot 2.2s ease-in-out infinite;
}

.lab-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.lab-card-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
  max-width: 52ch;
}

.lab-card-cta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-lab);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  transition: color 0.3s ease;
}

.lab-card:hover .lab-card-cta {
  color: var(--accent);
}

.lab-card-cta::after {
  content: ' \2192';
  display: inline-block;
  transition: transform 0.3s ease;
}

.lab-card:hover .lab-card-cta::after {
  transform: translateX(4px);
}

/* Sealed room — coming soon */
.lab-card.is-soon {
  border-style: dashed;
  opacity: 0.6;
}

.lab-card.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-card);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .lab-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lab-card,
  .lab-card.span-4,
  .lab-card.span-6 {
    grid-column: span 2;
  }

  .specimen img {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 100px;
  }

  .lab-card {
    min-height: 0;
    padding: 22px;
  }
}
