/* VORTEX TECH LABS · Investigación y Desarrollo */

.labs-page {
  --lab-cyan: #00c6ff;
  --lab-blue: #2563eb;
  --lab-green: #3ee7b1;
  --lab-ink: #071426;
  --lab-panel: rgba(11, 27, 49, 0.72);
  --lab-line: rgba(110, 185, 255, 0.14);
  background: var(--lab-ink);
}

.labs-page .navbar {
  background: rgba(7, 20, 38, 0.88);
}

.nav-labs {
  position: relative;
}

.nav-labs::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: var(--lab-cyan, #00c6ff);
  box-shadow: 0 0 9px rgba(0, 198, 255, 0.8);
}

.labs-hero {
  min-height: 760px;
  height: min(940px, 100vh);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
  border-bottom: 1px solid var(--lab-line);
  background:
    linear-gradient(90deg, rgba(7, 20, 38, 1) 0%, rgba(7, 20, 38, 0.98) 30%, rgba(7, 20, 38, 0.62) 68%, rgba(7, 20, 38, 0.4) 100%),
    #071426;
}

.labs-grid,
.collab-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(83, 165, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 165, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to right, black, transparent 85%);
}

.labs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.labs-orb-one {
  width: 500px;
  height: 500px;
  right: 12%;
  top: 10%;
  border: 1px solid rgba(0, 198, 255, 0.1);
  box-shadow: inset 0 0 90px rgba(37, 99, 235, 0.06), 0 0 120px rgba(0, 198, 255, 0.04);
}

.labs-orb-two {
  width: 210px;
  height: 210px;
  right: 5%;
  bottom: -70px;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(70px);
}

.labs-hero-layout {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(470px, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  position: relative;
  z-index: 2;
}

.labs-hero-copy {
  position: relative;
  z-index: 3;
  padding: 3rem 0 4rem;
}

.lab-kicker,
.section-code {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #79dfff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lab-kicker {
  padding: 0.48rem 0.76rem;
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 3px;
  background: rgba(0, 198, 255, 0.06);
  margin-bottom: 1.65rem;
}

.lab-kicker b {
  color: rgba(255, 255, 255, 0.25);
}

.lab-pulse,
.prototype-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lab-green);
  box-shadow: 0 0 0 4px rgba(62, 231, 177, 0.09), 0 0 12px rgba(62, 231, 177, 0.45);
}

.labs-hero h1 {
  max-width: 680px;
  color: #f5f9ff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4rem, 6.2vw, 6.3rem);
  line-height: 0.91;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.labs-hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(121, 223, 255, 0.72);
  text-shadow: 0 0 40px rgba(0, 198, 255, 0.12);
}

.labs-lead {
  margin-top: 1.4rem;
  color: #cbd9e9;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.labs-summary {
  max-width: 610px;
  margin-top: 1.15rem;
  color: #92a8c0;
  font-size: 1.03rem;
  line-height: 1.75;
}

.labs-summary strong {
  color: #dce9f7;
  font-weight: 500;
}

.labs-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-signals {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.1rem;
  color: #526c89;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-signals i {
  width: 18px;
  height: 1px;
  background: rgba(121, 223, 255, 0.24);
}

.labs-hero-visual {
  position: absolute;
  left: 41%;
  right: -9%;
  top: 6%;
  bottom: 0;
}

.labs-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #071426 0%, rgba(7, 20, 38, 0.52) 21%, transparent 50%);
  pointer-events: none;
}

.labs-hero-visual picture,
.labs-hero-visual img {
  width: 100%;
  height: 100%;
}

.labs-hero-visual img {
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.04);
}

.visual-readout {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(84, 174, 255, 0.2);
  background: rgba(5, 16, 31, 0.72);
  backdrop-filter: blur(12px);
  font-family: "Barlow Condensed", sans-serif;
}

.visual-readout span,
.visual-readout b {
  display: block;
}

.visual-readout span {
  color: #597794;
  font-size: 0.59rem;
  letter-spacing: 0.17em;
}

.visual-readout b {
  margin-top: 2px;
  color: #8edfff;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.readout-top {
  right: 9%;
  top: 20%;
}

.readout-bottom {
  right: 28%;
  bottom: 14%;
}

.hero-index {
  position: absolute;
  right: 2rem;
  bottom: 1.5rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #496580;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.15em;
}

.hero-index b {
  color: #7696b5;
  font-size: 0.75rem;
}

.labs-section {
  position: relative;
  padding: 7rem 0;
}

.ar-experiment-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--lab-line);
  background: #071426;
}

.ar-experiment-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--lab-line);
  background: linear-gradient(135deg, rgba(16, 42, 70, .82), rgba(5, 18, 34, .9));
}

.ar-experiment-copy { padding: 3.4rem; }
.ar-experiment-copy h2 { margin: .8rem 0 1rem; color: #f2f7fd; font: 700 clamp(2.7rem, 4vw, 4rem)/.98 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.ar-experiment-copy h2 span { display: block; color: #67dafd; }
.ar-experiment-copy p { max-width: 570px; color: #8fa6be; line-height: 1.7; }
.ar-experiment-copy .btn-primary { margin-top: 1.8rem; }
.ar-experiment-notes { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.ar-experiment-notes span { padding: .38rem .55rem; border: 1px solid rgba(0,198,255,.18); color: #78a8c4; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.ar-experiment-preview { position: relative; min-height: 420px; overflow: hidden; background: radial-gradient(circle at 50% 55%, rgba(30, 135, 216, .22), transparent 35%), linear-gradient(rgba(67, 152, 218, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(67, 152, 218, .08) 1px, transparent 1px), #030d19; background-size: auto, 42px 42px, 42px 42px, auto; }
.ar-experiment-preview::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#071426,transparent 18%); }
.ar-experiment-preview svg { position:absolute; left:50%; bottom:-25px; width:360px; transform:translateX(-50%); fill:rgba(34, 136, 210, .1); stroke:rgba(132, 220, 255, .7); stroke-width:2; }
.ar-experiment-preview svg circle { fill:#d8f6ff; stroke:#0fc6fa; }
.preview-status { position:absolute; z-index:2; right:20px; top:20px; display:flex; align-items:center; gap:8px; padding:.55rem .7rem; border:1px solid var(--lab-line); color:#73dfff; background:rgba(2,12,23,.7); font-size:.65rem; letter-spacing:.12em; }
.preview-status i { width:6px; height:6px; border-radius:50%; background:var(--lab-green); box-shadow:0 0 9px var(--lab-green); }
.preview-equation { position:absolute; z-index:2; left:50%; top:24%; display:flex; gap:9px; transform:translateX(-50%); }
.preview-equation b { display:grid; place-items:center; width:54px; height:66px; border:1px solid #8bdfff; border-radius:9px; color:white; background:linear-gradient(145deg,#216fce,#0d3475); font:700 1.8rem "Barlow Condensed",sans-serif; box-shadow:0 10px 25px rgba(0,20,60,.4); }
.preview-cursor { position:absolute; z-index:3; left:58%; top:56%; width:25px; height:25px; border:3px solid #1bd2ff; border-radius:50%; box-shadow:0 0 20px #1bd2ff; }

@media (max-width: 900px) {
  .ar-experiment-card { grid-template-columns: 1fr; }
  .ar-experiment-preview { min-height: 360px; }
}

@media (max-width: 700px) {
  .ar-experiment-copy { padding: 2rem 1.4rem; }
  .preview-equation b { width: 46px; height: 58px; }
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 6rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-intro h2,
.prototype-heading h2,
.labs-collab h2 {
  margin-top: 0.75rem;
  color: #f2f7fd;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.section-intro > p,
.architecture-copy,
.collab-copy > p {
  color: #8fa6be;
  font-size: 1rem;
  line-height: 1.75;
}

.research-section {
  background:
    radial-gradient(circle at 12% 30%, rgba(37, 99, 235, 0.09), transparent 27%),
    #09172a;
  border-bottom: 1px solid var(--lab-line);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--lab-line);
  background: rgba(3, 13, 26, 0.35);
}

.research-card {
  position: relative;
  min-height: 430px;
  padding: 2rem;
  border-right: 1px solid var(--lab-line);
  background: linear-gradient(145deg, rgba(18, 40, 68, 0.42), rgba(7, 20, 38, 0.25));
  transition: background 0.25s, transform 0.25s;
}

.research-card:last-child {
  border-right: 0;
}

.research-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.research-card:hover,
.research-card.featured {
  background: linear-gradient(145deg, rgba(19, 49, 82, 0.72), rgba(8, 25, 46, 0.52));
}

.research-card:hover::after,
.research-card.featured::after {
  opacity: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4.4rem;
}

.card-number {
  color: #4a6986;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.card-head svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #55d7ff;
  stroke-width: 1.25;
  opacity: 0.9;
}

.research-card h3 {
  color: #eef6ff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.research-card h3 em {
  display: block;
  margin-top: 0.45rem;
  color: #57d8ff;
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.research-card > p {
  margin-top: 1.2rem;
  color: #89a0b8;
  font-size: 0.93rem;
  line-height: 1.65;
}

.research-card ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.research-card li {
  color: #6f89a2;
  font-size: 0.78rem;
}

.research-card li::before {
  content: "—";
  margin-right: 0.55rem;
  color: rgba(0, 198, 255, 0.56);
}

.prototype-section {
  background: #071426;
  border-bottom: 1px solid var(--lab-line);
}

.prototype-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.prototype-heading h2 {
  max-width: 780px;
}

.prototype-heading h2 span,
.labs-collab h2 span {
  color: #61d9ff;
}

.prototype-status {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.3rem 0.65rem;
  min-width: 250px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(62, 231, 177, 0.2);
  background: rgba(62, 231, 177, 0.04);
}

.prototype-status span {
  color: #b7f8e3;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prototype-status b {
  grid-column: 2;
  color: #57768c;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.25rem;
}

.architecture-panel,
.dispatch-console {
  border: 1px solid var(--lab-line);
  background: linear-gradient(145deg, rgba(13, 31, 54, 0.75), rgba(5, 17, 33, 0.86));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.architecture-panel {
  padding: 1.65rem;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lab-line);
  color: #5b7894;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.panel-topline b {
  color: #6baac6;
}

.architecture-copy {
  max-width: 720px;
  margin: 1.5rem 0 2.2rem;
  font-size: 0.91rem;
}

.system-flow {
  display: grid;
  grid-template-columns: 1fr 0.32fr 1fr 0.32fr 1fr 0.32fr 1fr;
  align-items: center;
  min-height: 205px;
  padding: 1.4rem 1rem;
  border: 1px solid rgba(89, 177, 255, 0.11);
  background:
    linear-gradient(rgba(75, 155, 225, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 155, 225, 0.04) 1px, transparent 1px),
    rgba(1, 11, 23, 0.42);
  background-size: 26px 26px;
}

.flow-node {
  min-width: 0;
  text-align: center;
}

.node-label {
  display: block;
  margin-bottom: 0.7rem;
  color: #466682;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.node-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 198, 255, 0.19);
  border-radius: 50%;
  color: #5cd8ff;
  background: rgba(0, 198, 255, 0.04);
}

.flow-node.active .node-icon {
  color: #d6f7ff;
  border-color: rgba(0, 198, 255, 0.48);
  background: rgba(0, 198, 255, 0.12);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.15), inset 0 0 17px rgba(0, 198, 255, 0.08);
}

.node-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.flow-node b,
.flow-node small {
  display: block;
  white-space: nowrap;
}

.flow-node b {
  color: #c4d5e6;
  font-size: 0.76rem;
  font-weight: 600;
}

.flow-node small {
  margin-top: 0.25rem;
  color: #516c85;
  font-size: 0.58rem;
}

.flow-link {
  position: relative;
  min-width: 0;
  text-align: center;
}

.flow-link i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 198, 255, 0.2), rgba(0, 198, 255, 0.8));
}

.flow-link i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #5edcff;
  border-right: 1px solid #5edcff;
  transform: rotate(45deg);
}

.flow-link span {
  display: block;
  margin-top: 0.35rem;
  color: #47718d;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.architecture-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1rem;
  background: var(--lab-line);
}

.architecture-notes div {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem;
  background: #09182b;
}

.architecture-notes span {
  color: #4cd4ff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.64rem;
}

.architecture-notes p {
  color: #637d96;
  font-size: 0.68rem;
  line-height: 1.35;
}

.dispatch-console {
  overflow: hidden;
}

.console-bar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--lab-line);
  background: rgba(4, 15, 29, 0.65);
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.console-brand span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 198, 255, 0.35);
  color: #69dcff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}

.console-brand b {
  color: #b7c9da;
  font-size: 0.73rem;
}

.console-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #8aefce;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.console-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-green);
  box-shadow: 0 0 9px rgba(62, 231, 177, 0.65);
}

.console-body {
  padding: 0.9rem;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.console-metrics div {
  padding: 0.65rem;
  border: 1px solid rgba(97, 170, 235, 0.1);
  background: rgba(11, 30, 52, 0.7);
}

.console-metrics span,
.console-metrics small,
.console-metrics b {
  display: block;
}

.console-metrics span {
  color: #59738b;
  font-size: 0.55rem;
}

.console-metrics b {
  color: #d7e7f7;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  line-height: 1.15;
}

.console-metrics small {
  color: #47728a;
  font-size: 0.51rem;
}

.console-map {
  position: relative;
  height: 250px;
  margin-top: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(97, 170, 235, 0.1);
  background:
    radial-gradient(circle at 68% 38%, rgba(0, 198, 255, 0.1), transparent 18%),
    #061426;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(28deg, transparent 47%, rgba(74, 133, 182, 0.1) 48%, transparent 49%),
    linear-gradient(152deg, transparent 47%, rgba(74, 133, 182, 0.08) 48%, transparent 49%),
    linear-gradient(rgba(72, 141, 202, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 141, 202, 0.05) 1px, transparent 1px);
  background-size: 95px 70px, 130px 90px, 28px 28px, 28px 28px;
}

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line path {
  fill: none;
  stroke: #1c9fd4;
  stroke-width: 2;
  stroke-dasharray: 5 5;
  filter: drop-shadow(0 0 4px rgba(0, 198, 255, 0.5));
}

.map-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #84e6ff;
  border-radius: 50%;
  background: #071426;
  box-shadow: 0 0 0 5px rgba(0, 198, 255, 0.09), 0 0 13px rgba(0, 198, 255, 0.7);
}

.node-a { left: 20%; bottom: 22%; }
.node-b { left: 51%; top: 53%; }
.node-c { right: 20%; top: 25%; }

.map-node.alert {
  border-color: #48e5b1;
  box-shadow: 0 0 0 7px rgba(62, 231, 177, 0.09), 0 0 14px rgba(62, 231, 177, 0.7);
}

.event-card {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 210px;
  padding: 0.65rem;
  border-left: 2px solid var(--lab-green);
  background: rgba(5, 20, 35, 0.9);
  backdrop-filter: blur(10px);
}

.event-card span,
.event-card b,
.event-card small {
  display: block;
}

.event-card span {
  color: #52dbae;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.event-card b {
  margin-top: 0.25rem;
  color: #c9d8e7;
  font-size: 0.67rem;
}

.event-card small {
  margin-top: 0.2rem;
  color: #577087;
  font-size: 0.52rem;
}

.console-events {
  display: grid;
  margin-top: 0.6rem;
}

.console-events > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid rgba(84, 156, 221, 0.07);
  color: #617b94;
  font-size: 0.56rem;
}

.console-events i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4e708d;
}

.console-events i.ok { background: var(--lab-green); }
.console-events i.signal { background: var(--lab-cyan); }
.console-events b { color: #8ea9c1; }
.console-events time { color: #405d77; }

.console-caption {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--lab-line);
  color: #425e78;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.stack-section {
  background:
    radial-gradient(circle at 90% 15%, rgba(0, 198, 255, 0.06), transparent 24%),
    #09172a;
  border-bottom: 1px solid var(--lab-line);
}

.stack-table {
  border-top: 1px solid var(--lab-line);
}

.stack-table article {
  display: grid;
  grid-template-columns: 0.12fr 0.75fr 1.2fr 0.8fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 150px;
  border-bottom: 1px solid var(--lab-line);
  transition: background 0.2s;
}

.stack-table article:hover {
  background: rgba(23, 53, 86, 0.24);
}

.stack-index {
  color: #365874;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
}

.stack-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stack-title svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  fill: none;
  stroke: #51d7ff;
  stroke-width: 1.15;
}

.stack-title span {
  color: #4f6d89;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.stack-title h3 {
  margin-top: 0.25rem;
  color: #dce8f4;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tags span {
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(85, 184, 237, 0.13);
  border-radius: 3px;
  color: #77a4bf;
  background: rgba(8, 27, 48, 0.6);
  font-size: 0.68rem;
}

.stack-table article > p {
  color: #657f96;
  font-size: 0.75rem;
  line-height: 1.55;
}

.stack-disclaimer {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  color: #58728b;
  font-size: 0.68rem;
}

.stack-disclaimer span {
  color: #53cceb;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.labs-collab {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(37, 99, 235, 0.17), transparent 30%),
    linear-gradient(120deg, #071426, #0b1b31);
  border-bottom: 1px solid var(--lab-line);
}

.collab-grid {
  mask-image: linear-gradient(to left, black, transparent);
  transform: rotate(-4deg) scale(1.1);
}

.collab-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 6rem;
}

.labs-collab h2 {
  max-width: 650px;
}

.collab-copy .btn-primary {
  margin-top: 1.8rem;
}

.labs-footer {
  background: #050f1e;
}

@media (max-width: 1120px) {
  .labs-hero-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .labs-hero-visual {
    left: 38%;
    right: -16%;
  }

  .prototype-layout {
    grid-template-columns: 1fr;
  }

  .dispatch-console {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
  }

  .stack-table article {
    grid-template-columns: 0.1fr 0.9fr 1fr;
    padding: 1.5rem 0;
  }

  .stack-table article > p {
    grid-column: 2 / 4;
  }
}

@media (max-width: 920px) {
  .labs-hero {
    min-height: 900px;
    height: auto;
    align-items: flex-start;
  }

  .labs-hero-layout {
    display: block;
    padding-top: 3.5rem;
    padding-bottom: 0;
  }

  .labs-hero-copy {
    width: 76%;
    padding-bottom: 22rem;
  }

  .labs-hero-visual {
    left: 28%;
    right: -22%;
    top: 35%;
    height: 65%;
  }

  .labs-hero-visual::before {
    background: linear-gradient(180deg, #071426 0%, transparent 34%);
  }

  .readout-top { top: 32%; }
  .readout-bottom { bottom: 11%; }

  .section-intro,
  .collab-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--lab-line);
  }

  .research-card:last-child {
    border-bottom: 0;
  }

  .card-head {
    margin-bottom: 2.5rem;
  }

  .prototype-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .labs-hero {
    min-height: 860px;
  }

  .labs-hero-layout {
    padding-top: 2.4rem;
  }

  .labs-hero-copy {
    width: 100%;
    padding: 2rem 0 22rem;
  }

  .labs-hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.6rem);
  }

  .labs-summary {
    font-size: 0.94rem;
  }

  .labs-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .labs-actions a {
    justify-content: center;
    text-align: center;
  }

  .labs-hero-visual {
    left: -25%;
    right: -64%;
    top: auto;
    bottom: -1%;
    height: 48%;
  }

  .labs-hero-visual img {
    object-position: 70% center;
  }

  .visual-readout {
    display: none;
  }

  .hero-index {
    display: none;
  }

  .labs-section,
  .labs-collab {
    padding: 5rem 0;
  }

  .section-intro {
    margin-bottom: 2.3rem;
  }

  .section-intro h2,
  .prototype-heading h2,
  .labs-collab h2 {
    font-size: 2.65rem;
  }

  .research-card {
    padding: 1.5rem;
  }

  .prototype-status {
    min-width: 0;
    width: 100%;
  }

  .architecture-panel {
    padding: 1rem;
  }

  .system-flow {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.2rem;
  }

  .flow-link {
    width: 1px;
    height: 28px;
    margin: 0 auto;
  }

  .flow-link i {
    width: 1px;
    height: 100%;
    background: linear-gradient(rgba(0, 198, 255, 0.2), rgba(0, 198, 255, 0.8));
  }

  .flow-link i::after {
    right: -2px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .flow-link span {
    position: absolute;
    left: 10px;
    top: 5px;
    margin: 0;
    white-space: nowrap;
  }

  .architecture-notes {
    grid-template-columns: 1fr;
  }

  .console-map {
    height: 220px;
  }

  .event-card {
    right: 0.5rem;
    left: 0.5rem;
    bottom: 0.5rem;
    width: auto;
  }

  .stack-table article {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
  }

  .stack-tags,
  .stack-table article > p {
    grid-column: 2;
  }

  .stack-title {
    align-items: flex-start;
  }

  .stack-title svg {
    width: 32px;
    height: 32px;
  }

  .collab-layout {
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-card,
  .stack-table article {
    transition: none;
  }
}
