:root {
  --lab-bg: #0d0f1c;
  --lab-bg-deep: #070916;
  --lab-panel: rgba(255, 255, 255, 0.075);
  --lab-panel-strong: rgba(255, 255, 255, 0.12);
  --lab-line: rgba(255, 255, 255, 0.14);
  --lab-text: #ffffff;
  --lab-muted: #cbd4e8;
  --lab-cyan: #08baa2;
  --lab-blue: #4fd1ff;
  --lab-indigo: #303a6b;
  --lab-radius: 18px;
  --lab-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--lab-bg);
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(8, 186, 162, 0.24), transparent 34%),
    radial-gradient(circle at 82% 4%, rgba(79, 209, 255, 0.22), transparent 30%),
    linear-gradient(180deg, var(--lab-bg) 0%, var(--lab-bg-deep) 64%, var(--lab-bg) 100%);
  color: var(--lab-text);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.lab-page {
  position: relative;
  isolation: isolate;
}

.lab-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding: 14px 0;
  background: rgba(13, 15, 28, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  text-decoration: none;
}

.lab-brand:hover {
  color: #ffffff;
}

.lab-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.lab-brand-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.lab-brand-text small {
  color: var(--lab-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.lab-nav-links a:hover {
  color: #ffffff;
}

.lab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lab-cyan), var(--lab-blue));
  color: #05101a;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(8, 186, 162, 0.24);
  cursor: pointer;
}

.lab-button:hover {
  color: #05101a;
  transform: translateY(-1px);
}

.lab-button.is-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
}

.lab-section {
  position: relative;
  padding: 92px 0;
}

.lab-hero {
  min-height: 760px;
  padding: 150px 0 120px;
  overflow: hidden;
}

.lab-wave {
  position: absolute;
  right: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  min-width: 920px;
  pointer-events: none;
}

.lab-wave-top {
  top: 78px;
  transform: rotate(180deg);
  opacity: 0.32;
}

.lab-wave-bottom {
  bottom: -1px;
  opacity: 0.42;
}

.lab-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(79, 209, 255, 0.24);
  border-radius: 999px;
  background: rgba(79, 209, 255, 0.09);
  color: #d9f8ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lab-cyan);
  box-shadow: 0 0 18px rgba(8, 186, 162, 0.86);
}

.lab-hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.lab-lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--lab-muted);
  font-size: 20px;
  line-height: 1.65;
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 850px;
}

.lab-metric,
.lab-card,
.lab-product,
.lab-step,
.lab-contact-panel {
  border: 1px solid var(--lab-line);
  background: var(--lab-panel);
  box-shadow: var(--lab-shadow);
  backdrop-filter: blur(20px);
}

.lab-metric {
  min-height: 122px;
  padding: 18px;
  border-radius: var(--lab-radius);
}

.lab-metric strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.lab-metric span {
  color: var(--lab-muted);
  font-size: 14px;
  line-height: 1.45;
}

.lab-device-board {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(48, 58, 107, 0.78), rgba(7, 9, 22, 0.82)),
    radial-gradient(circle at top, rgba(8, 186, 162, 0.25), transparent 58%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.lab-device-board::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
}

.lab-device-board img {
  position: absolute;
  right: -34px;
  bottom: 22px;
  width: min(82%, 430px);
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.42));
}

.lab-board-copy {
  position: relative;
  z-index: 1;
  max-width: 340px;
  padding: 34px;
}

.lab-board-copy strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.18;
}

.lab-board-copy p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 15px;
}

.lab-section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.lab-section-title h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
}

.lab-section-title p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 18px;
  line-height: 1.65;
}

.lab-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lab-card {
  min-height: 260px;
  padding: 24px;
  border-radius: var(--lab-radius);
}

.lab-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(8, 186, 162, 0.14);
  color: var(--lab-cyan);
  font-size: 22px;
}

.lab-card h3,
.lab-product h3,
.lab-step h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
}

.lab-card p,
.lab-product p,
.lab-step p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 15px;
  line-height: 1.65;
}

.lab-projects {
  background:
    linear-gradient(180deg, rgba(48, 58, 107, 0.42), rgba(13, 15, 28, 0.12)),
    rgba(255, 255, 255, 0.015);
}

.lab-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lab-product {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
}

.lab-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.lab-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(79, 209, 255, 0.10);
  color: #d9f8ff;
  font-size: 12px;
  font-weight: 700;
}

.lab-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lab-step {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--lab-radius);
}

.lab-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lab-cyan), var(--lab-blue));
  color: #061018;
  font-weight: 900;
}

.lab-contact {
  padding-bottom: 120px;
}

.lab-contact-panel {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(8, 186, 162, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(48, 58, 107, 0.82), rgba(13, 15, 28, 0.92));
}

.lab-contact-panel h2 {
  max-width: 760px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}

.lab-contact-panel p {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--lab-muted);
  font-size: 18px;
  line-height: 1.65;
}

.lab-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.lab-contact-list a,
.lab-contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.lab-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.68);
}

.lab-project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.74);
  backdrop-filter: blur(16px);
}

.lab-project-modal.is-open {
  display: flex;
}

.lab-project-modal__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at right top, rgba(8, 186, 162, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(23, 31, 55, 0.96), rgba(10, 12, 25, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.lab-project-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lab-project-modal__header {
  max-width: 720px;
  padding-right: 56px;
  margin-bottom: 18px;
}

.lab-project-modal__header span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--lab-cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-project-modal__header h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.lab-project-modal__header p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.6;
}

.lab-project-form {
  display: grid;
  gap: 14px;
}

.lab-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.lab-project-form label {
  display: grid;
  gap: 6px;
}

.lab-project-form label span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.lab-project-form input,
.lab-project-form select,
.lab-project-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lab-project-form label:has(select) {
  position: relative;
}

.lab-project-form label:has(select)::after {
  content: "\F282";
  position: absolute;
  right: 16px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--lab-cyan);
  font-family: "bootstrap-icons";
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lab-project-form label:has(select:focus)::after {
  color: var(--lab-blue);
  transform: translateY(1px);
}

.lab-project-form input,
.lab-project-form select {
  min-height: 46px;
  padding: 0 14px;
}

.lab-project-form select {
  padding-right: 46px;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(135deg, rgba(79, 209, 255, 0.10), rgba(8, 186, 162, 0.06)),
    rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.lab-project-form select:required:invalid {
  color: rgba(203, 212, 232, 0.62);
}

.lab-project-form textarea {
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
}

.lab-project-form select option {
  background: #11172a;
  color: #ffffff;
}

.lab-project-form select option:disabled {
  color: rgba(203, 212, 232, 0.58);
}

.lab-project-form input:focus,
.lab-project-form select:focus,
.lab-project-form textarea:focus {
  border-color: rgba(79, 209, 255, 0.58);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(79, 209, 255, 0.12);
}

.lab-project-form input::placeholder,
.lab-project-form textarea::placeholder {
  color: rgba(203, 212, 232, 0.62);
}

.lab-project-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(79, 209, 255, 0.18);
  border-radius: 14px;
  background: rgba(79, 209, 255, 0.06);
}

.lab-project-form .lab-project-consent input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid rgba(79, 209, 255, 0.42);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lab-project-form .lab-project-consent input:checked {
  border-color: var(--lab-cyan);
  background:
    linear-gradient(135deg, var(--lab-cyan), var(--lab-blue));
  box-shadow: 0 0 0 4px rgba(8, 186, 162, 0.12);
}

.lab-project-form .lab-project-consent input:checked::before {
  content: "";
  display: block;
  width: 11px;
  height: 7px;
  margin: 5px auto 0;
  border-bottom: 2px solid #06101a;
  border-left: 2px solid #06101a;
  transform: rotate(-45deg);
}

.lab-project-form .lab-project-consent input:focus {
  box-shadow: 0 0 0 4px rgba(79, 209, 255, 0.16);
}

.lab-project-consent span {
  color: rgba(203, 212, 232, 0.88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.lab-project-consent a {
  color: #ffffff;
  font-weight: 800;
  text-decoration-color: rgba(79, 209, 255, 0.55);
  text-underline-offset: 3px;
}

.lab-project-consent a:hover {
  color: var(--lab-blue);
}

.lab-form-full {
  grid-column: 1 / -1;
}

.lab-form-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lab-project-form__note,
.lab-project-form__status {
  margin: 0;
  color: rgba(203, 212, 232, 0.78);
  font-size: 13px;
  line-height: 1.42;
}

.lab-project-form__status {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(79, 209, 255, 0.08);
}

.lab-project-form__status.is-visible {
  display: block;
}

.lab-project-form__status.is-error {
  background: rgba(255, 104, 104, 0.12);
  color: #ffd6d6;
}

.lab-project-form__status.is-success {
  background: rgba(8, 186, 162, 0.13);
  color: #d7fff8;
}

.lab-project-form__submit {
  justify-self: start;
}

.lab-project-form__submit:disabled {
  cursor: wait;
  opacity: 0.68;
  filter: saturate(0.65);
  transform: none;
  pointer-events: none;
}

@media (max-width: 991px) {
  .lab-navbar {
    position: static;
  }

  .lab-nav-links {
    justify-content: flex-start;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lab-hero {
    min-height: 0;
    padding: 74px 0 88px;
  }

  .lab-device-board {
    margin-top: 34px;
  }

  .lab-card-grid,
  .lab-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .lab-section {
    padding: 66px 0;
  }

  .lab-brand img {
    width: 46px;
    height: 46px;
  }

  .lab-nav-links {
    gap: 14px;
  }

  .lab-hero h1 {
    font-size: 42px;
  }

  .lab-lead {
    font-size: 17px;
  }

  .lab-metrics,
  .lab-card-grid,
  .lab-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-device-board {
    min-height: 420px;
    border-radius: 22px;
  }

  .lab-device-board img {
    right: 50%;
    bottom: 8px;
    width: min(92%, 360px);
    transform: translateX(50%);
  }

  .lab-board-copy {
    padding: 26px;
  }

  .lab-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-product img {
    max-height: 220px;
  }

  .lab-contact-panel {
    padding: 26px;
    border-radius: 22px;
  }

  .lab-project-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .lab-project-modal__dialog {
    max-height: calc(100svh - 24px);
    padding: 26px 18px 20px;
    border-radius: 22px;
  }

  .lab-project-modal__header {
    padding-right: 48px;
  }

  .lab-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-project-form__submit {
    width: 100%;
  }
}

/*---------------------------------------
  FINAL LAB POLISH
-----------------------------------------*/
.lab-navbar {
  top: 14px;
  right: auto;
  left: 50%;
  width: min(1160px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(13, 15, 28, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.lab-navbar .container {
  max-width: 100%;
  padding: 10px 18px;
}

.lab-brand img {
  width: 70px;
  height: 44px;
}

.lab-brand-text {
  bottom: 2px;
  font-size: 20px;
}

.lab-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lab-nav-links a:hover {
  background: rgba(8, 186, 162, 0.14);
}

.lab-hero {
  padding-top: 160px;
}

.lab-hero > .container {
  position: relative;
  z-index: 2;
}

.lab-wave {
  z-index: 1;
}

.lab-wave-top {
  top: 86px;
  transform: rotate(180deg);
  transform-origin: center center;
  opacity: 0.46;
}

.lab-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
}

.lab-device-board {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 470px;
}

.lab-board-copy {
  max-width: 100%;
  padding: 30px 30px 0;
}

.lab-board-copy strong {
  max-width: 330px;
  font-size: 22px;
}

.lab-board-copy p {
  max-width: 350px;
  line-height: 1.55;
}

.lab-device-board img {
  right: 50%;
  bottom: 8px;
  width: min(78%, 370px);
  transform: translateX(50%);
}

.lab-footer .text-md-end > span {
  color: var(--lab-cyan);
  font-weight: 700;
}

@media (max-width: 991px) {
  .lab-navbar {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  .lab-navbar .container {
    padding: 10px 12px;
  }

  .lab-wave-top {
    top: 72px;
  }
}

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

  .lab-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .lab-device-board {
    min-height: 430px;
  }

  .lab-board-copy {
    padding: 24px 22px 0;
  }

  .lab-board-copy strong {
    font-size: 20px;
  }

  .lab-device-board img {
    width: min(88%, 330px);
  }
}

/*---------------------------------------
  PROJECTS WAVE JOIN
-----------------------------------------*/
#opportunity {
  padding-bottom: 0;
}

.lab-projects {
  padding-top: 0;
}

.lab-projects > .wave-top {
  display: block;
  width: 100%;
  margin: 0;
  top: 0;
  transform: none;
}

.lab-projects > .container {
  padding-top: 92px;
}

@media (max-width: 640px) {
  .lab-projects > .container {
    padding-top: 66px;
  }
}

/*---------------------------------------
  LAB SECTION FLOW AND MEDIA
-----------------------------------------*/
.lab-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(8, 186, 162, 0.20), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(79, 209, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #111a32 0%, #16233d 50%, var(--lab-bg) 100%);
}

#opportunity {
  padding-top: 52px;
  background: var(--lab-bg);
}

.lab-projects {
  padding-bottom: 76px;
  background: linear-gradient(180deg, var(--lab-bg) 0%, #202847 46%, #171c33 100%);
}

.lab-projects > .container {
  padding-top: 28px;
}

#partnership {
  background: linear-gradient(180deg, #171c33 0%, #111524 48%, var(--lab-bg) 100%);
}

.lab-device-board {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 12px;
  min-height: 350px;
  padding: 24px 22px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(20px);
}

.lab-device-board::before {
  display: none;
}

.lab-board-copy {
  align-self: start;
  max-width: 100%;
  padding: 0;
}

.lab-board-copy strong {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.22;
}

.lab-board-copy p {
  max-width: 390px;
  font-size: 15px;
  line-height: 1.55;
}

.lab-device-board img {
  position: static;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 0;
  border-radius: 22px;
  transform: none;
  filter: none;
}

.lab-product {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
}

.lab-product img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991px) {
  #opportunity {
    padding-top: 44px;
  }

  .lab-projects > .container {
    padding-top: 26px;
  }

  .lab-device-board {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  #opportunity {
    padding-top: 36px;
  }

  .lab-projects {
    padding-bottom: 62px;
  }

  .lab-projects > .container {
    padding-top: 22px;
  }

  .lab-device-board {
    min-height: 0;
    padding: 22px 16px 14px;
    row-gap: 6px;
  }

  .lab-device-board img {
    width: 100%;
    margin-top: 0;
    border-radius: 18px;
  }

  .lab-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-product img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }
}

/*---------------------------------------
  LAB MOBILE NAV, WAVE AND SPACING
-----------------------------------------*/
.lab-navbar .navbar-collapse {
  flex-grow: 1;
}

@media (max-width: 991px) {
  .lab-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--lab-bg);
    box-shadow: none;
    transform: none;
  }

  .lab-navbar .container {
    min-height: 64px;
    padding: 8px 14px;
  }

  .lab-navbar .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .lab-navbar .navbar-collapse {
    flex-basis: 100%;
    padding: 10px 0 8px;
  }

  .lab-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .lab-nav-links .nav-link {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 0;
  }

  .lab-hero {
    position: relative;
    padding-top: 104px;
  }

  .lab-hero #wave-hero-top {
    display: block;
    position: absolute;
    top: 0;
    right: auto;
    left: 50%;
    z-index: 1;
    width: 920px;
    max-width: none;
    min-width: 920px;
    opacity: 1;
    transform: translateX(-50%);
    transform-origin: center;
    pointer-events: none;
  }

  .lab-hero > .container {
    position: relative;
    z-index: 2;
  }

  #opportunity,
  #partnership,
  #contact {
    padding-top: 38px;
  }
}

@media (max-width: 640px) {
  .lab-navbar .lab-brand img {
    width: 58px;
    height: 38px;
  }

  .lab-navbar .lab-brand-text {
    font-size: 18px;
  }

  .lab-hero {
    padding-top: 92px;
  }

  #opportunity,
  #partnership,
  #contact {
    padding-top: 30px;
  }
}

/*---------------------------------------
  LAB CONTENT REPOSITIONING
-----------------------------------------*/
.lab-project-group + .lab-project-group,
.lab-models {
  margin-top: 64px;
}

.lab-group-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.lab-group-heading > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--lab-cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-group-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

.lab-project-group .lab-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-project-group .lab-product {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-height: 100%;
  padding: 18px;
}

.lab-project-group .lab-product img {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 4px;
}

.lab-idea-grid,
.lab-skill-grid,
.lab-proof-grid,
.lab-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lab-idea-card,
.lab-skill-card,
.lab-proof-card,
.lab-model {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: var(--lab-panel);
  box-shadow: var(--lab-shadow);
  backdrop-filter: blur(20px);
}

.lab-idea-card i,
.lab-model i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(79, 209, 255, 0.11);
  color: var(--lab-blue);
  font-size: 22px;
}

.lab-idea-card h3,
.lab-skill-card h3,
.lab-proof-card strong,
.lab-model h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.lab-idea-card p,
.lab-skill-card p,
.lab-proof-card p,
.lab-model p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 15px;
  line-height: 1.65;
}

.lab-trust-note {
  margin: 22px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--lab-cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(8, 186, 162, 0.08);
  color: var(--lab-muted);
  font-size: 15px;
  line-height: 1.65;
}

.lab-showcase-window {
  position: relative;
  overflow: hidden;
  max-height: 520px;
  transition: max-height 0.55s ease;
}

.lab-collapsed-showcase.is-expanded .lab-showcase-window {
  max-height: 4200px;
}

.lab-showcase-window::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 28, 51, 0), rgba(23, 28, 51, 0.72) 42%, #171c33 86%);
  backdrop-filter: blur(1.5px);
  transition: opacity 0.3s ease;
}

.lab-collapsed-showcase.is-expanded .lab-showcase-window::after {
  opacity: 0;
}

.lab-showcase-content {
  display: grid;
  gap: 34px;
  padding-bottom: 86px;
}

.lab-mini-section {
  display: grid;
  gap: 24px;
}

.lab-mini-heading {
  display: block;
  max-width: 780px;
}

.lab-mini-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--lab-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-mini-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--lab-muted);
  font-size: 15px;
  line-height: 1.6;
}

.lab-proof-card strong {
  display: block;
  line-height: 1.25;
}

.lab-showcase-toggle {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(79, 209, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 186, 162, 0.94), rgba(79, 209, 255, 0.9));
  color: #06101a;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateX(50%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lab-showcase-toggle:hover {
  box-shadow: 0 10px 5px rgba(8, 186, 162, 0.22);
  transform: translateX(50%) translateY(-1px);
}

.lab-showcase-toggle i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.lab-collapsed-showcase.is-expanded .lab-showcase-toggle i {
  transform: rotate(180deg);
}

.lab-collapsed-showcase.is-expanded .lab-showcase-toggle {
  position: relative;
  right: auto;
  bottom: auto;
  left: 50%;
  margin-top: 8px;
  transform: translateX(-50%);
}

.lab-collapsed-showcase.is-expanded .lab-showcase-toggle:hover {
  transform: translateX(-50%) translateY(-1px);
}

@media (max-width: 991px) {
  .lab-project-group .lab-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-idea-grid,
  .lab-skill-grid,
  .lab-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-project-group .lab-product {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 640px) {
  .lab-project-group + .lab-project-group,
  .lab-models {
    margin-top: 48px;
  }

  .lab-project-group .lab-product,
  .lab-idea-grid,
  .lab-skill-grid,
  .lab-proof-grid,
  .lab-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-idea-card,
  .lab-skill-card,
  .lab-proof-card,
  .lab-model {
    min-height: 0;
    padding: 20px;
  }

  .lab-trust-note {
    padding: 18px;
  }
}

@media (max-width: 991px) {
  .lab-showcase-window {
    max-height: 610px;
  }

  .lab-collapsed-showcase.is-expanded .lab-showcase-window {
    max-height: 5200px;
  }

  .lab-mini-heading {
    display: block;
  }

  .lab-mini-heading p {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .lab-showcase-window {
    max-height: 650px;
  }

  .lab-collapsed-showcase.is-expanded .lab-showcase-window {
    max-height: 6200px;
  }

  .lab-showcase-window::after {
    height: 150px;
  }

  .lab-showcase-content {
    gap: 28px;
    padding-bottom: 78px;
  }

  .lab-showcase-toggle {
    width: calc(100% - 24px);
    padding: 0 14px;
  }
}

@media (min-width: 992px) {
  .lab-project-modal__dialog {
    max-height: calc(100vh - 48px);
  }
}

@media (max-width: 991px) {
  .lab-kicker {
    margin-bottom: 12px;
  }
}

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

  .lab-kicker {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .lab-collapsed-showcase.is-expanded .lab-showcase-content {
    padding-bottom: 10px;
  }

  .lab-collapsed-showcase.is-expanded .lab-showcase-toggle {
    width: calc(100% - 24px);
    margin-top: 8px;
  }
}

/*---------------------------------------
  LAB TABLET RESPONSIVE FIXES
-----------------------------------------*/
.lab-card,
.lab-product,
.lab-step,
.lab-idea-card,
.lab-skill-card,
.lab-proof-card,
.lab-model,
.lab-metric,
.lab-board-copy {
  min-width: 0;
}

.lab-card h3,
.lab-product h3,
.lab-step h3,
.lab-idea-card h3,
.lab-skill-card h3,
.lab-proof-card strong,
.lab-model h3,
.lab-card p,
.lab-product p,
.lab-step p,
.lab-idea-card p,
.lab-skill-card p,
.lab-proof-card p,
.lab-model p,
.lab-metric span,
.lab-board-copy strong,
.lab-board-copy p {
  overflow-wrap: anywhere;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .lab-navbar {
    width: min(980px, calc(100% - 28px));
  }

  .lab-navbar .container {
    padding: 8px 14px;
  }

  .lab-brand img {
    width: 62px;
    height: 40px;
  }

  .lab-brand-text {
    font-size: 18px;
  }

  .lab-nav-links {
    gap: 8px;
  }

  .lab-nav-links a {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .lab-hero {
    min-height: 0;
    padding-top: 128px;
    padding-bottom: 96px;
  }

  .lab-hero h1 {
    max-width: 680px;
    font-size: 46px;
  }

  .lab-lead {
    font-size: 17px;
    line-height: 1.58;
  }

  .lab-metrics {
    gap: 10px;
  }

  .lab-metric {
    min-height: 118px;
    padding: 16px;
  }

  .lab-metric strong {
    font-size: 24px;
  }

  .lab-card-grid,
  .lab-steps,
  .lab-project-group .lab-product-grid,
  .lab-idea-grid,
  .lab-skill-grid,
  .lab-proof-grid,
  .lab-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-product,
  .lab-project-group .lab-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-card h3,
  .lab-product h3,
  .lab-step h3,
  .lab-idea-card h3,
  .lab-skill-card h3,
  .lab-proof-card strong,
  .lab-model h3 {
    font-size: 19px;
    line-height: 1.28;
  }
}

@media (max-width: 991px) {
  .lab-hero {
    padding-top: 72px;
  }

  .lab-kicker {
    margin-top: 0;
  }

  .lab-card-grid,
  .lab-steps,
  .lab-idea-grid,
  .lab-skill-grid,
  .lab-proof-grid,
  .lab-model-grid {
    gap: 14px;
  }

  .lab-card,
  .lab-step,
  .lab-idea-card,
  .lab-skill-card,
  .lab-proof-card,
  .lab-model {
    padding: 18px;
  }

  .lab-card h3,
  .lab-product h3,
  .lab-step h3,
  .lab-idea-card h3,
  .lab-skill-card h3,
  .lab-proof-card strong,
  .lab-model h3 {
    font-size: 19px;
    line-height: 1.28;
  }

  .lab-card p,
  .lab-product p,
  .lab-step p,
  .lab-idea-card p,
  .lab-skill-card p,
  .lab-proof-card p,
  .lab-model p {
    font-size: 14px;
    line-height: 1.58;
  }
}

@media (max-width: 820px) {
  .lab-hero {
    padding-top: 60px;
  }

  .lab-hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .lab-lead {
    font-size: 16px;
    line-height: 1.58;
  }

  .lab-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-metric {
    min-height: 0;
    padding: 16px;
  }

  .lab-project-group .lab-product {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

/*---------------------------------------
  CROSS-PAGE DESKTOP NAV ALIGNMENT
-----------------------------------------*/
@media (min-width: 992px) {
  .lab-navbar {
    top: 0;
    right: 0;
    left: 0;
    width: min(1160px, calc(100% - 28px));
    margin: 14px auto 0;
    transform: none;
  }

  .lab-navbar .container {
    max-width: 100%;
    padding: 10px 12px;
  }

  .lab-brand {
    gap: 5px;
  }

  .lab-brand img {
    width: 70px;
    height: 44px;
  }

  .lab-brand-text {
    font-size: 20px;
  }

  .lab-nav-links {
    gap: 0;
  }

  .lab-nav-links a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
  }
}

.lab-nav-links .nav-link.active,
.lab-nav-links .nav-link:hover,
.lab-nav-links .nav-link:focus {
  color: #ffffff;
  background: rgba(8, 186, 162, 0.14);
}
