/* CrownAccess Labs. The hero is real Blind River LiDAR: a dim copy of the terrain,
   with a bright copy revealed by a beam sweeping across it. */
.page-labs {
  background: #06100f;
  color: #dcefe9;
}

.page-labs .site-header .nav-shell {
  background: rgba(9, 24, 22, 0.94);
  border-color: rgba(150, 240, 225, 0.2);
  box-shadow: none;
}

.page-labs .site-header .brand span,
.page-labs .site-header .site-nav a:not(.nav-labs),
.page-labs .site-header .menu-toggle {
  color: #dcefe9;
}

.page-labs .site-header .menu-toggle {
  background: rgba(150, 240, 225, 0.12);
}

.page-labs .site-footer {
  background: #06100f;
  color: #9db5ae;
  border-top: 1px solid rgba(150, 240, 225, 0.14);
}

.page-labs .brand-footer span,
.page-labs .footer-meta {
  color: #9db5ae;
}

.labs-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(82vh, 760px);
  padding: 72px 24px;
  overflow: hidden;
  isolation: isolate;
}

.labs-terrain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #06100f;
}

.labs-terrain-base,
.labs-terrain-scan {
  position: absolute;
  inset: 0;
  background: url("assets/labs-lidar.jpg") center / cover no-repeat;
  animation: labs-drift 40s ease-in-out infinite alternate;
}

.labs-terrain-base {
  /* Inverted, the pale flats go dark and the ridges light up. */
  opacity: 0.5;
  filter: invert(1) brightness(1.7) contrast(1.5);
}

.labs-terrain-scan {
  filter: invert(1) brightness(3) contrast(1.5) sepia(1) hue-rotate(118deg) saturate(4);
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 49%, #000 51%, transparent 62%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 49%, #000 51%, transparent 62%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: labs-drift 40s ease-in-out infinite alternate, labs-scan 7s linear infinite;
}

.labs-scanline {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 2px;
  background: #9ffff0;
  box-shadow: 0 0 22px 5px rgba(120, 255, 235, 0.65);
  transform: rotate(10deg);
  animation: labs-beam 7s linear infinite;
}

.labs-terrain::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 15, 0.9) 0%, rgba(6, 16, 15, 0.78) 42%, rgba(6, 16, 15, 0.08) 78%),
    linear-gradient(to bottom, rgba(6, 16, 15, 0) 72%, #06100f);
}

@keyframes labs-scan {
  from { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
  to { -webkit-mask-position: -30% 0; mask-position: -30% 0; }
}

@keyframes labs-beam {
  from { left: -4%; }
  to { left: 104%; }
}

@keyframes labs-drift {
  from { transform: scale(1.04) translate3d(-1%, 0, 0); }
  to { transform: scale(1.12) translate3d(1%, -1%, 0); }
}

.labs-hero-copy {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.labs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 1px solid rgba(150, 240, 225, 0.4);
  border-radius: 999px;
  color: #9ffff0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.labs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ffff0;
  box-shadow: 0 0 9px #9ffff0;
  animation: labs-pulse 2s ease-in-out infinite;
}

@keyframes labs-pulse {
  50% { opacity: 0.35; }
}

.labs-title {
  margin: 0;
  max-width: 13ch;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* The shine: a bright band runs through a chrome-and-teal gradient. */
.labs-title span,
.nav-labs {
  background: linear-gradient(
    105deg,
    #7ff5e2 0%,
    #d9fff8 22%,
    #ffffff 30%,
    #5fd8ff 42%,
    #b79bff 58%,
    #fff 68%,
    #7ff5e2 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: labs-shine 5s linear infinite;
}

@keyframes labs-shine {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

@media (max-width: 767px) {
  .labs-terrain::after {
    background:
      linear-gradient(rgba(6, 16, 15, 0.8), rgba(6, 16, 15, 0.8)),
      linear-gradient(to bottom, rgba(6, 16, 15, 0) 72%, #06100f);
  }
}

.labs-lead {
  max-width: 34rem;
  margin: 20px 0 26px;
  color: #dcefe9;
  font-size: 1.14rem;
  line-height: 1.55;
}

.labs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.labs-buy,
.labs-try {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.labs-buy {
  position: relative;
  overflow: hidden;
  background: #9ffff0;
  color: #04201c;
  box-shadow: 0 0 26px rgba(120, 255, 235, 0.45);
}

.labs-buy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-20deg);
  animation: labs-glint 4s ease-in-out infinite;
}

@keyframes labs-glint {
  0%, 60% { left: -40%; }
  100% { left: 120%; }
}

.labs-try {
  border: 1px solid rgba(150, 240, 225, 0.45);
  color: #dcefe9;
}

.labs-note {
  margin: 12px 0 0;
  color: #9db5ae;
  font-size: 0.82rem;
}

.labs-section {
  padding: 52px 0;
}

.labs-shell {
  max-width: 1120px;
}

.labs-section h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.labs-sub {
  margin: 0 0 20px;
  color: #b6cbc5;
}

.labs-perks,
.labs-pilots {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.labs-perks {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.labs-pilots {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.labs-perk,
.labs-pilot {
  padding: 20px;
  border: 1px solid rgba(150, 240, 225, 0.18);
  border-radius: 14px;
  background: rgba(150, 240, 225, 0.05);
}

.labs-perk h3,
.labs-pilot h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.08rem;
}

.labs-perk p,
.labs-pilot p {
  margin: 0;
  color: #b6cbc5;
  line-height: 1.5;
}

.page-labs main a:not(.labs-buy):not(.labs-try):not(.labs-pilot) {
  color: #9ffff0;
}

.labs-pilot {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

a.labs-pilot:hover,
a.labs-pilot:focus-visible {
  border-color: #9ffff0;
  transform: translateY(-2px);
}

.labs-pilot-tag {
  display: block;
  margin-bottom: 8px;
  color: #9ffff0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.labs-pilot-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}

.labs-pilot-spots a {
  font-weight: 800;
}

.labs-pilot-go {
  display: block;
  margin-top: 12px;
  color: #9ffff0;
  font-weight: 800;
}

.labs-honest {
  max-width: 760px;
}

.labs-honest p,
.labs-honest li {
  color: #b6cbc5;
  line-height: 1.6;
}

.labs-honest h2 + p {
  margin-top: 0;
}

.labs-honest h2:not(:first-child) {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .labs-terrain-base,
  .labs-terrain-scan,
  .labs-scanline,
  .labs-title span,
  .labs-dot,
  .labs-buy::after {
    animation: none;
  }

  .labs-terrain-scan {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.35;
  }

  .labs-scanline {
    display: none;
  }
}
