.landing-page { min-height: 100%; overflow-x: hidden; }
.landing-page a { color: inherit; text-decoration: none; }

.landing-header {
  position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 91%, transparent); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.landing-brand { display: flex; flex-direction: column; gap: 2px; }
.landing-brand-name { font: 700 16px/1 var(--font-mono); letter-spacing: .14em; }
.landing-brand-tagline { color: var(--accent); font: 10px/1.2 var(--font-mono); letter-spacing: .06em; }
.landing-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font: 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.landing-nav a:hover { color: var(--text); }
.landing-launch { padding: 9px 12px; border: 1px solid var(--border-strong); color: var(--text) !important; }
.landing-launch:hover { border-color: var(--accent); background: rgba(34,226,196,.06); }

/* Kept deliberately short and quiet — one line of headline, one of deck copy, one small live
   stat — so the gallery below (the actual point of this page) starts almost immediately. */
.landing-hero {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 6vw, 56px) 34px;
  border-bottom: 1px solid var(--border);
}
.landing-hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.hero-deck { max-width: 560px; margin: 12px 0 0; color: #aeb9c5; font-size: clamp(14px, 1.4vw, 16px); line-height: 1.5; }
.hero-signal { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.hero-signal i { display: inline-block; width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 10px var(--accent); border-radius: 50%; animation: signalPulse 1.7s ease-in-out infinite; }
.hero-signal #labCount { color: var(--text); font-weight: 700; }
@keyframes signalPulse { 50% { opacity: .3; } }

.lab-gallery-section { padding: 40px clamp(14px, 4vw, 56px) 88px; }
.lab-gallery-section h2 { margin: 0 0 22px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.lab-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lab-card { grid-column: span 4; min-width: 0; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; animation: cardIn .4s both; animation-delay: calc(var(--card-index) * 60ms); }
.lab-card--featured { grid-column: span 8; }
.lab-card--wide { grid-column: span 6; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.lab-card:hover, .lab-card:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }

/* The preview IS the pitch — it takes most of the card, loads on its own (see landing.js's
   IntersectionObserver), and needs no hover or click to appear. */
.lab-preview { aspect-ratio: 16 / 11; position: relative; overflow: hidden; background: #070b10; border-bottom: 1px solid var(--border); }
.lab-card--featured .lab-preview { aspect-ratio: 16 / 8; }
.lab-preview::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(34,226,196,.10), transparent 60%);
  animation: previewIdlePulse 2.4s ease-in-out infinite;
}
.preview-ready .lab-preview::before { display: none; }
@keyframes previewIdlePulse { 50% { opacity: .4; } }
.lab-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s ease; background: var(--bg); pointer-events: none; }
.preview-ready .lab-preview iframe { opacity: 1; }
.preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

.lab-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lab-card h3 { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.25; font-weight: 600; }
.lab-open { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.lab-open:hover { text-decoration: underline; }
.gallery-status { padding: 60px 0; color: var(--muted); font-size: 12px; text-align: center; }
.gallery-status.is-error { color: var(--error); }

.landing-cta {
  margin: 0 clamp(14px, 4vw, 56px) 80px; padding: 30px clamp(20px, 4vw, 40px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
}
.landing-cta h2 { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -.01em; max-width: 480px; }
.cta-link { flex-shrink: 0; padding: 10px 0; border-bottom: 1px solid var(--accent); display: flex; align-items: center; gap: 10px; color: var(--accent) !important; font: 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.landing-footer { min-height: 64px; padding: 20px clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 980px) {
  .lab-card, .lab-card--wide { grid-column: span 6; }
  .lab-card--featured { grid-column: span 12; }
}
@media (max-width: 640px) {
  .landing-header { height: 56px; padding: 0 14px; }
  .landing-brand-tagline, .landing-nav > a:first-child { display: none; }
  .landing-launch { padding: 8px 10px; font-size: 10px; }
  .landing-hero { padding: 32px 16px 26px; }
  .lab-gallery-section { padding: 30px 10px 60px; }
  .lab-gallery { display: block; }
  .lab-card { margin-bottom: 12px; }
  .landing-cta { margin: 0 10px 56px; padding: 24px 20px; display: block; }
  .cta-link { margin-top: 18px; }
  .landing-footer { display: grid; gap: 6px; }
}
