/* ───────────────────────── DS LABS / SIGNAL FOUNDRY */

.theme-labs {
  --scene-rgb: 153, 196, 255;
  --studio-silver: #e9eff8;
  --studio-blue: #79aaff;
  --studio-ice: #8feaf0;
  --studio-ink: #020409;
}

.theme-labs .page-shell {
  background:
    radial-gradient(circle at 74% 18%, rgba(92, 145, 255, .13), transparent 29%),
    radial-gradient(circle at 16% 62%, rgba(85, 226, 224, .07), transparent 26%),
    linear-gradient(145deg, #020308, #060a12 52%, #020307);
}

.theme-labs .reveal.reveal-ready {
  transform: translateY(26px);
}

.theme-labs .reveal.reveal-ready.is-visible {
  transform: none;
}

.theme-labs .page-shell::before {
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(155, 199, 255, .05) 47.1% 47.2%, transparent 47.3%),
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, .07) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.theme-labs .site-header {
  width: min(1540px, calc(100% - 72px));
}

.theme-labs .brand-symbol {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(155, 197, 255, .42);
  border-radius: 17px 17px 17px 7px;
  background:
    radial-gradient(circle at 31% 22%, rgba(223, 246, 255, .34), transparent 18%),
    conic-gradient(from 210deg, #09101c, #17335b, #0b1020, #09101c);
  color: #f3f7ff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 14px 40px rgba(33, 83, 157, .22);
}

.theme-labs .brand-symbol::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(142, 231, 239, .32);
  border-radius: 50%;
}

.theme-labs .studio-brand-art {
  background: #fff;
}

.theme-labs .studio-brand-art::after {
  display: none;
}

.theme-labs .studio-brand-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.theme-labs .studio-hero {
  width: min(1540px, calc(100% - 72px));
  min-height: calc(100svh - 88px);
  grid-template-columns: minmax(520px, 1.07fr) minmax(570px, .93fr);
  gap: clamp(28px, 4vw, 74px);
}

.theme-labs .studio-copy {
  padding: 88px 0 104px;
}

.theme-labs .studio-copy h1 {
  max-width: 900px;
  margin: 26px 0 34px;
  font-size: clamp(64px, 5.2vw, 90px);
  font-weight: 480;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.theme-labs .studio-copy h1 em {
  color: var(--studio-silver);
  font-weight: 650;
  background: linear-gradient(94deg, #f5f8ff 4%, #93dbec 48%, #7aa7ff 96%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.theme-labs .studio-copy > p {
  max-width: 700px;
}

.theme-labs .hero-proof {
  gap: 0;
  max-width: 650px;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.theme-labs .hero-proof div {
  flex: 1;
  min-height: 86px;
  padding: 22px 18px 0 0;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, .09);
}

.theme-labs .hero-proof div + div {
  padding-left: 18px;
}

.theme-labs .ecosystem-visual {
  min-height: 760px;
  isolation: isolate;
}

.theme-labs .ecosystem-visual::before {
  width: min(690px, 48vw);
  height: min(690px, 48vw);
  border-color: rgba(142, 234, 240, .1);
  background:
    repeating-radial-gradient(circle, transparent 0 53px, rgba(119, 169, 255, .08) 54px 55px),
    conic-gradient(from 118deg, transparent 0 9%, rgba(130, 225, 236, .12) 10% 11%, transparent 12% 51%, rgba(123, 164, 255, .1) 52% 53%, transparent 54%);
  animation: none;
}

.theme-labs .ecosystem-visual::after {
  right: 5%;
  top: 83%;
  border-color: rgba(144, 190, 255, .22);
  color: #8196b8;
  background: rgba(3, 6, 12, .88);
  font-size: 9px;
}

.theme-labs .space-grid {
  left: 52%;
  bottom: 10px;
  width: 94%;
  height: 310px;
  opacity: .42;
  background-size: 74px 74px;
}

.theme-labs .core-sphere {
  width: 238px;
  height: 238px;
  border-color: rgba(173, 221, 255, .46);
  background:
    radial-gradient(circle at 32% 23%, #f4fbff 0 2%, #8ebad7 8%, #23446a 24%, #08101d 55%, #010205 79%),
    #03050a;
  box-shadow:
    0 0 0 18px rgba(104, 173, 255, .035),
    0 0 0 47px rgba(93, 150, 240, .025),
    0 0 110px rgba(101, 190, 255, .22),
    0 70px 120px rgba(0, 0, 0, .78),
    inset -34px -28px 70px #010205;
  animation-duration: 7.8s;
}

.theme-labs .core-sphere span {
  font-size: 68px;
  font-weight: 580;
  letter-spacing: -.1em;
}

.theme-labs .orbit-a {
  width: 700px;
  height: 390px;
  animation-duration: 42s;
}

.theme-labs .orbit-b {
  width: 520px;
  height: 700px;
  animation-duration: 54s;
}

.theme-labs .product-node {
  min-width: 196px;
  padding: 18px 20px;
  border-radius: 20px 20px 20px 7px;
  border-color: rgba(155, 197, 255, .2);
  background: linear-gradient(145deg, rgba(13, 20, 32, .94), rgba(3, 6, 12, .86));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 30px 72px rgba(0, 0, 0, .5);
  animation-duration: 9s;
}

.theme-labs .product-node small,
.theme-labs .product-node span {
  font-size: 10px;
}

.theme-labs .product-node strong {
  font-size: 17px;
}

.theme-labs .node-pulse { left: 0; top: 22%; }
.theme-labs .node-target { right: 0; top: 15%; color: #61b4ff; }
.theme-labs .node-doc { left: 3%; bottom: 17%; }
.theme-labs .node-spark { right: 0; bottom: 18%; }
.theme-labs .node-jobs { bottom: 0; color: #63dec0; border-color: rgba(99,222,192,.42); }
.theme-labs .rail-jobs { --rail-accent: #63dec0; }
.theme-labs .accent-jobs { --accent: #63dec0; }
.theme-labs .rail-target { --rail-accent: #61b4ff; }
.theme-labs .accent-target { --accent: #61b4ff; }

.theme-labs .product-rail {
  width: min(1540px, calc(100% - 72px));
  gap: 0;
  padding: 0 0 80px;
}

.theme-labs .rail-item {
  min-height: 148px;
  padding: 24px 24px 22px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--rail-accent) 34%, transparent);
  border-right: 1px solid rgba(255, 255, 255, .07);
  background: transparent;
  box-shadow: none;
}

.theme-labs .rail-item strong {
  margin-top: 28px;
  font-size: 18px;
}

.theme-labs .rail-item small {
  font-size: 11px;
}

.theme-labs .section-pad {
  width: min(1440px, calc(100% - 72px));
}

.theme-labs .manifesto-grid {
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(70px, 10vw, 170px);
}

.theme-labs .portfolio-card {
  grid-template-columns: 88px .82fr 1.18fr;
  min-height: 430px;
  padding: 56px;
  margin-bottom: 28px;
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 36px 36px 36px 10px;
  background:
    radial-gradient(circle at 86% 50%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(11, 18, 30, .84), rgba(3, 6, 12, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 32px 90px rgba(0, 0, 0, .22);
}

.theme-labs .portfolio-card:nth-of-type(even) {
  grid-template-columns: 88px 1.18fr .82fr;
}

.theme-labs .portfolio-card:nth-of-type(even) .portfolio-copy {
  order: 3;
}

.theme-labs .portfolio-card:nth-of-type(even) .portfolio-signal {
  order: 2;
}

.theme-labs .portfolio-copy h3 {
  font-size: clamp(46px, 5vw, 78px);
}

.theme-labs .portfolio-copy > p:not(.section-kicker),
.theme-labs .capability-grid p,
.theme-labs .process-track p {
  font-size: 14px;
}

.theme-labs .capability-grid > div {
  min-height: 120px;
  padding: 32px 36px 32px 88px;
  border-radius: 24px 24px 24px 7px;
  background: rgba(8, 13, 22, .76);
}

.theme-labs .process-track > div {
  min-height: 270px;
}

.theme-labs .contact-stage::before {
  border-radius: 40px 40px 40px 12px;
  background: linear-gradient(120deg, rgba(17, 32, 54, .8), rgba(4, 8, 15, .86));
}
