.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--teal), #2d8cff);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.is-enhanced .hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(243, 201, 95, 0.22) 45% 46%, transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 68px);
  mask-image: radial-gradient(
    circle 360px at var(--pointer-x, 64%) var(--pointer-y, 44%),
    #000 0,
    transparent 76%
  );
}

.experience-lab {
  position: relative;
  overflow: hidden;
  padding: 76px 6vw;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 17, 33, 0.98), rgba(7, 42, 66, 0.94)),
    linear-gradient(90deg, rgba(243, 201, 95, 0.16), transparent 38%, rgba(0, 139, 143, 0.18));
}

.experience-lab::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.06) 58% 59%, transparent 59%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 84px);
  opacity: 0.76;
}

.lab-header,
.workflow-shell,
.capability-console {
  position: relative;
  z-index: 1;
}

.lab-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 0.48fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.lab-header h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 1.05;
}

.lab-header p:not(.eyebrow),
.flow-preview p,
.capability-console p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.workflow-shell {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.flow-step,
.capability-chips button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.flow-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px 14px;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.flow-step span {
  grid-row: span 2;
  color: var(--yellow);
  font-weight: 900;
}

.flow-step strong {
  font-size: 1.08rem;
}

.flow-step small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.flow-step:hover,
.flow-step.is-active {
  border-color: rgba(243, 201, 95, 0.68);
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.flow-preview {
  min-height: 398px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    linear-gradient(160deg, rgba(0, 139, 143, 0.18), rgba(243, 201, 95, 0.08));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  --tilt-rotate-x: 0deg;
  --tilt-rotate-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-rotate-x)) rotateY(var(--tilt-rotate-y));
  transition:
    transform 160ms ease,
    border-color 180ms ease;
}

.preview-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #bfeee7;
  font-weight: 900;
}

.flow-preview h3 {
  max-width: 780px;
  margin: 84px 0 0;
  font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  line-height: 1.05;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 88px;
  margin-top: 38px;
}

.signal-board span {
  display: block;
  height: var(--level);
  min-height: 24px;
  background: linear-gradient(180deg, var(--yellow), var(--teal));
  border-radius: 8px 8px 2px 2px;
}

.capability-console {
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(260px, 0.64fr);
  gap: 18px 26px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 16, 31, 0.72);
}

.capability-console h3 {
  margin: 0;
  font-size: 1.6rem;
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.capability-chips button {
  min-height: 40px;
  padding: 0 14px;
  font-weight: 900;
}

.capability-chips button:hover,
.capability-chips button.is-active {
  color: #041121;
  background: var(--yellow);
}

.capability-console [data-capability-copy] {
  grid-column: 2;
  margin: 0;
}

.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .lab-header,
  .workflow-shell,
  .capability-console {
    grid-template-columns: 1fr;
  }

  .experience-lab {
    padding: 58px 5vw;
  }

  .flow-preview h3 {
    margin-top: 42px;
  }

  .capability-console [data-capability-copy] {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-enhanced [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
