:root {
  --black: #030504;
  --black-2: #080b09;
  --black-3: #101411;
  --panel: rgba(10, 14, 12, 0.78);
  --panel-solid: #0b0f0d;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f4f6f1;
  --muted: #9da49e;
  --dim: #5f6861;
  --green: #00291d;
  --green-2: #005a36;
  --green-3: #0a8f55;
  --green-soft: #8cff8a;
  --amber: #e86025;
  --max: 1440px;
  color-scheme: dark;
  font-family:
    Montserrat, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
  background:
    linear-gradient(110deg, rgba(0, 20, 15, 0.22), transparent 38%),
    linear-gradient(180deg, var(--black), #050806 46%, var(--black));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 18%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px);
  opacity: 0.36;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 34%, rgba(0, 0, 0, 0.52)),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 20, 16, 0.44));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 28px;
  color: var(--text);
  background: rgba(3, 5, 4, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 152px;
}

.brand-symbol {
  width: 24px;
  height: 21px;
  object-fit: contain;
}

.brand-wordmark {
  width: 116px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 31px;
  color: rgba(244, 246, 241, 0.9);
  font-size: 13px;
  font-weight: 400;
}

.site-nav a,
.site-footer a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-footer a:hover {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: rgba(244, 246, 241, 0.72);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
}

.lang-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 9px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lang-toggle span + span {
  border-left: 1px solid var(--line);
}

.lang-toggle span.active {
  color: var(--black);
  background: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.home-board {
  width: 100%;
  margin: 0;
  padding: 0 0 86px;
}

.home-display {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #020402;
}

.display-media,
.display-fallback,
.robot-feature img,
.module-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.display-fallback {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: 0;
  opacity: 0.95;
  filter: brightness(0.62) contrast(1.2) saturate(1.08);
}

.display-media {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: 1;
  opacity: 1;
  filter: brightness(0.55) contrast(1.16) saturate(0.96);
}

.video-fallback-active .display-media {
  opacity: 0;
}

.display-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.58)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.82));
}

.display-shade::after,
.robot-feature::after,
.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 5px);
  opacity: 0.22;
}

.display-logo {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 54px;
  z-index: 3;
  width: 90px;
  opacity: 0.86;
  filter: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.display-copy {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  padding: 64px 54px 134px;
  text-align: center;
}

.showcase-kicker {
  margin: 0 0 16px;
  color: rgba(244, 246, 241, 0.82);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-kicker span {
  color: var(--green-soft);
}

.showcase-title {
  margin: 0;
  color: var(--text);
  font-size: 68px;
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
  white-space: normal;
}

.showcase-title span {
  display: block;
}

.mission-line {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 34px;
  align-items: end;
  justify-content: center;
  max-width: 720px;
  margin-top: 38px;
}

.mission-line span {
  color: var(--text);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-line span:nth-child(2) {
  color: var(--green-soft);
}

.showcase-caption {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(244, 246, 241, 0.66);
  font-size: 12px;
  line-height: 1.8;
  font-weight: 800;
}

.robot-feature {
  position: relative;
  display: block;
  width: min(var(--max), calc(100% - 60px));
  min-height: 520px;
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: #020402;
}

.robot-feature img {
  z-index: 0;
  object-position: center 42%;
  filter: brightness(0.56) contrast(1.08) saturate(0.92);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.robot-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.54)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.robot-feature:hover img,
.module-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.7) contrast(1.08) saturate(1);
}

.robot-feature-copy {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
}

.robot-feature-copy p,
.robot-feature-copy span,
.module-card span,
.module-card p {
  margin: 0;
  color: rgba(244, 246, 241, 0.72);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 800;
  text-transform: uppercase;
}

.robot-feature-title {
  max-width: 1060px;
  margin: 10px 0 18px;
  color: var(--text);
  font-size: 70px;
  line-height: 0.9;
  font-weight: 900;
}

.robot-feature-copy span {
  color: var(--green-soft);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.robot-feature:hover .robot-feature-copy span,
.robot-feature:focus-visible .robot-feature-copy span,
.module-card:hover p,
.module-card:focus-visible p {
  opacity: 1;
  transform: translateY(0);
}

.home-module-grid {
  display: grid;
  width: min(var(--max), calc(100% - 60px));
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 34px auto 0;
}

.module-card {
  position: relative;
  min-height: 352px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: #030504;
}

.module-card img {
  z-index: 0;
  filter: brightness(0.48) contrast(1.12) saturate(0.84);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 34%, rgba(0, 0, 0, 0.88));
}

.module-card span,
.module-card h3,
.module-card p {
  position: relative;
  z-index: 2;
}

.module-card span {
  display: inline-block;
  margin: 24px 0 0 24px;
  color: var(--green-soft);
}

.module-card h3 {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 50px;
  margin: 0;
  color: var(--text);
  font-size: 23px;
  line-height: 1.02;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.module-card p {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  max-width: 360px;
  color: rgba(244, 246, 241, 0.72);
  text-transform: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

body[data-lang="en"] .module-card h3 {
  bottom: 66px;
}

body[data-lang="en"] .module-card p {
  max-width: 340px;
  font-size: 10px;
  line-height: 1.42;
  font-weight: 400;
  text-transform: none;
  overflow-wrap: anywhere;
}

/* Keep card titles and hover descriptions in one flow so copy can never overlap. */
.module-card .module-card-copy {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 2;
}

.module-card .module-card-copy h3,
body[data-lang="en"] .module-card .module-card-copy h3 {
  position: static;
  margin: 0;
}

.module-card .module-card-copy p,
body[data-lang="en"] .module-card .module-card-copy p {
  position: static;
  max-width: 360px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.32s ease,
    margin 0.32s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

.module-card:hover .module-card-copy p,
.module-card:focus-visible .module-card-copy p {
  max-height: 96px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

body[data-lang="en"] .module-card:hover .module-card-copy p,
body[data-lang="en"] .module-card:focus-visible .module-card-copy p {
  max-height: 120px;
}

.header-cta:hover,
.button.primary {
  border-color: rgba(131, 184, 165, 0.8);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--text);
}

.button.primary:hover,
.button.ghost:hover {
  transform: translateY(-1px);
  border-color: var(--green-soft);
}

.button.ghost {
  background: rgba(0, 0, 0, 0.28);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.page {
  display: none;
  min-height: calc(100vh - 100px);
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--black);
}

.compact-hero {
  min-height: 62vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: saturate(0.86) contrast(1.05) brightness(0.72);
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 40, 34, 0.26) 0%, rgba(0, 0, 0, 0.24) 45%, rgba(0, 0, 0, 0.94) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(131, 184, 165, 0.1), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  opacity: 0.34;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(var(--max), calc(100% - 60px));
  min-height: inherit;
  margin: 0 auto;
  padding: 118px 0 86px;
}

.hero-content > * {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 74px;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 850;
}

.hero-copy {
  color: rgba(244, 246, 241, 0.78);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.section {
  width: min(var(--max), calc(100% - 60px));
  margin: 0 auto;
  padding: 86px 0;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: end;
}

.section-copy,
.page-title p,
.visual-copy p,
.feature-card p,
.product-card p,
.solution-card p,
.placeholder-card p,
.detail-aside p,
.about-grid p,
.CTA-panel p,
.partnership-grid p,
.business-model-grid p,
.partner-grid p,
.loop-intro p,
.company-story p,
.process p {
  color: var(--muted);
  line-height: 1.75;
}

.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dark-band {
  width: 100%;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(0, 48, 42, 0.78), rgba(0, 0, 0, 0.96)),
    var(--black-2);
}

.metric {
  min-height: 126px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 26px;
  color: var(--green-soft);
  font-size: 11px;
  font-weight: 850;
}

.metric strong {
  font-size: 20px;
  font-weight: 850;
}

.visual-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.visual-lead img,
.single-visual img,
.gallery-main,
.solution-card img,
.product-card img,
.CTA-panel img,
.tech-visual-strip img,
.about-visuals img,
.missing-visuals img {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-solid);
}

.visual-lead img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.text-link::after {
  content: ">";
  color: var(--green-soft);
}

.card-grid,
.tech-stack,
.missing-visuals,
.about-grid,
.about-visuals,
.partnership-grid,
.business-model-grid,
.partner-grid,
.job-list {
  display: grid;
  gap: 16px;
}

.card-grid.three,
.tech-stack,
.missing-visuals,
.about-grid,
.about-visuals,
.partnership-grid,
.business-model-grid,
.partner-grid,
.job-list {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.placeholder-card,
.about-grid article,
.about-card-link,
.partnership-grid article,
.business-model-grid article,
.partner-grid article,
.job-list article,
.tech-stack article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(0, 70, 58, 0.18), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.feature-card {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.feature-card:hover,
.about-card-link:hover,
.about-card-link:focus-visible,
.CTA-panel:hover,
.CTA-panel:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(131, 184, 165, 0.82);
  background:
    linear-gradient(135deg, rgba(0, 98, 79, 0.28), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.card-index,
.solution-card span,
.placeholder-card span,
.process span,
.business-model-grid span,
.partner-grid span,
.job-list span,
.missing-visuals span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green-soft);
  font-size: 11px;
  font-weight: 850;
}

.page-title {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding-top: 132px;
  padding-bottom: 48px;
}

.page-title::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -58px;
  z-index: 0;
  width: 430px;
  height: 360px;
  background: url("./assets/babelflex-logo-mark-white.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.page-title > * {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  max-width: 860px;
  font-size: 70px;
}

.page-title p {
  max-width: 820px;
  color: rgba(244, 246, 241, 0.72);
  font-size: 18px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  padding-top: 0;
  background: var(--line);
}

.process article {
  min-height: 292px;
  padding: 34px;
  background: rgba(7, 10, 8, 0.94);
}

.tech-visual-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  gap: 16px;
  padding-top: 0;
}

.tech-visual-strip figure,
.about-visuals figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--black-2);
}

.tech-visual-strip img,
.about-visuals img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
}

.tech-visual-strip figcaption,
.about-visuals figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 9px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.flow-panel {
  display: grid;
  grid-template-columns: 150px 1fr 150px 1fr 150px 1fr 150px;
  align-items: center;
}

.flow-step {
  display: grid;
  place-items: center;
  height: 86px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.flow-step.active {
  border-color: rgba(131, 184, 165, 0.9);
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.flow-line {
  height: 1px;
  background: linear-gradient(90deg, var(--green-soft), transparent);
}

.loop-intro {
  padding-bottom: 32px;
}

.loop-intro h2,
.section-heading h2 {
  max-width: 760px;
  margin-bottom: 16px;
}

.loop-intro > p:last-child {
  max-width: 820px;
  font-size: 18px;
}

.business-flow {
  padding-top: 0;
}

.business-model,
.partner-section,
.robot-foundation {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 34px;
}

.business-model-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.business-model-grid article,
.partner-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(0, 70, 58, 0.18), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.partner-grid article {
  min-height: 230px;
}

.company-story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-story article {
  min-height: 310px;
  padding: 42px;
}

.company-story article + article {
  border-left: 1px solid var(--line);
}

.company-story h2 {
  max-width: 520px;
  margin-bottom: 26px;
}

.company-story article > p:last-child {
  max-width: 620px;
}

.product-grid {
  display: grid;
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: 380px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 0.24s ease,
    background 0.24s ease,
    transform 0.24s ease;
}

.product-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition:
    filter 0.24s ease,
    transform 0.24s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(140, 255, 138, 0.42);
  background: rgba(255, 255, 255, 0.045);
}

.product-card:hover img,
.product-card:focus-visible img {
  filter: saturate(0.95) contrast(1.06) brightness(1.04);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  width: min(var(--max), calc(100% - 60px));
  margin: 0 auto;
  padding: 112px 0 80px;
}

.detail-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(0, 70, 58, 0.18), rgba(255, 255, 255, 0.02)),
    rgba(5, 8, 6, 0.86);
  backdrop-filter: blur(18px);
}

.detail-aside h1 {
  font-size: 58px;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.spec-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: rgba(244, 246, 241, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.gallery,
.single-visual {
  min-width: 0;
}

.gallery-main {
  width: 100%;
  height: min(68vh, 720px);
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.thumb {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.thumb.active,
.thumb:hover {
  color: var(--text);
  border-color: var(--green-soft);
  background: rgba(0, 98, 79, 0.28);
}

.single-visual img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.map-pane,
.ops-pane {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
}

.map-pane {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #07100d;
  background-size: 64px 64px;
}

.command-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.82) contrast(1.08) brightness(0.62);
}

.route,
.node {
  position: absolute;
  z-index: 2;
}

.route {
  height: 2px;
  background: var(--green-soft);
  transform-origin: left center;
  box-shadow: 0 0 18px rgba(131, 184, 165, 0.56);
}

.route-a {
  top: 36%;
  left: 18%;
  width: 52%;
  transform: rotate(18deg);
}

.route-b {
  top: 64%;
  left: 28%;
  width: 44%;
  transform: rotate(-24deg);
}

.node {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 7px rgba(131, 184, 165, 0.18);
}

.n1 {
  top: 32%;
  left: 17%;
}

.n2 {
  top: 48%;
  left: 68%;
}

.n3 {
  top: 70%;
  left: 28%;
}

.n4 {
  top: 53%;
  left: 72%;
}

.ops-pane {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.ops-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.ops-row span {
  color: var(--muted);
}

.ops-row strong {
  color: var(--text);
  text-align: right;
}

.ops-row.muted strong {
  color: var(--green-soft);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.solution-card,
.placeholder-card {
  position: relative;
  overflow: hidden;
}

.solution-card.large {
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
}

.solution-card img {
  width: 100%;
  height: 258px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  filter: saturate(0.9) contrast(1.05);
}

.solution-card div {
  padding: 22px;
}

.placeholder-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.placeholder-card::before {
  content: "";
  position: absolute;
  inset: 20px 20px auto auto;
  width: 70px;
  height: 70px;
  border-top: 1px solid var(--green-soft);
  border-right: 1px solid var(--green-soft);
  opacity: 0.45;
}

.tech-stack ul {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.tech-stack li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.missing-visuals {
  padding-top: 0;
}

.missing-visuals figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
}

.missing-visuals img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.missing-visuals figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

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

.contact-form,
.contact-side,
.CTA-panel {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form label:nth-child(4),
.contact-form button,
.contact-form .form-note {
  grid-column: 1 / -1;
}

.contact-form .form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.contact-form .form-note a {
  color: var(--green-soft);
}

.contact-form .form-note a:hover {
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-side {
  padding: 28px;
}

.contact-side a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-side a:hover {
  color: var(--text);
}

.CTA-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: 0;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.CTA-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.68);
}

.CTA-panel div {
  padding: 48px;
  align-self: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(3, 5, 4, 0.88);
}

.footer-wordmark {
  display: block;
  width: 148px;
  height: auto;
  margin-bottom: 10px;
  opacity: 0.94;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.is-scrambling {
  color: var(--green-soft);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.3%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.open .site-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(3, 5, 4, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.open .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    min-width: 134px;
  }

  .brand-symbol {
    width: 22px;
    height: 20px;
  }

  .brand-wordmark {
    width: 102px;
  }

  .home-board {
    width: 100%;
    padding: 0 0 64px;
  }

  .home-display,
  .display-copy {
    min-height: 100vh;
  }

  .display-copy {
    padding: 34px 28px;
  }

  .display-logo {
    left: 50%;
    right: auto;
    bottom: 42px;
    width: 72px;
    opacity: 0.84;
    transform: translateX(-50%);
  }

  .showcase-kicker {
    font-size: 14px;
  }

  .showcase-title {
    font-size: 48px;
  }

  .mission-line {
    grid-template-columns: repeat(3, auto);
    gap: 18px;
    max-width: 520px;
    margin-top: 26px;
  }

  .mission-line span {
    font-size: 14px;
  }

  .robot-feature {
    width: min(100% - 32px, var(--max));
    min-height: 430px;
  }

  .robot-feature-title {
    font-size: 44px;
  }

  .home-module-grid {
    width: min(100% - 32px, var(--max));
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .module-card {
    min-height: 310px;
  }

  .module-card h3 {
    font-size: 21px;
  }

  .hero,
  .compact-hero {
    min-height: 78vh;
  }

  .hero-content,
  .section,
  .detail-layout {
    width: min(100% - 32px, var(--max));
  }

  .hero-content {
    padding: 106px 0 58px;
  }

  h1,
  .page-title h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 31px;
  }

  .split-intro,
  .visual-lead,
  .product-card,
  .detail-layout,
  .dashboard,
  .form-layout,
  .CTA-panel {
    grid-template-columns: 1fr;
  }

  .band,
  .process,
  .card-grid.three,
  .solution-grid,
  .tech-stack,
  .missing-visuals,
  .tech-visual-strip,
  .about-grid,
    .about-visuals,
    .partnership-grid,
    .business-model-grid,
    .partner-grid,
    .company-story,
    .job-list {
    grid-template-columns: 1fr;
  }

  .company-story article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-line {
    width: 1px;
    height: 30px;
    justify-self: center;
  }

  .detail-aside {
    position: static;
  }

  .gallery-main,
  .single-visual img {
    height: auto;
    max-height: none;
  }

  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer nav {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  body::before {
    background-size: 52px 52px;
  }

  .section {
    padding: 58px 0;
  }

  .page-title {
    padding-top: 108px;
  }

  .hero-copy,
  .page-title p {
    font-size: 16px;
  }

  h1,
  .page-title h1 {
    font-size: 38px;
  }

  .product-card img,
  .solution-card img,
  .tech-visual-strip img,
  .about-visuals img,
  .missing-visuals img {
    height: 230px;
  }

  .map-pane,
  .ops-pane {
    min-height: 340px;
  }

  .CTA-panel div {
    padding: 28px;
  }

  .home-board {
    padding-top: 0;
  }

  .home-display,
  .display-copy {
    min-height: 100vh;
  }

  .display-copy {
    padding: 28px 22px;
  }

  .display-logo {
    left: 50%;
    right: auto;
    bottom: 30px;
    width: 58px;
    transform: translateX(-50%);
  }

  .showcase-kicker {
    font-size: 14px;
  }

  .showcase-title {
    font-size: 34px;
  }

  .mission-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mission-line span {
    font-size: 13px;
  }

  .showcase-caption {
    font-size: 11px;
  }

  .robot-feature {
    min-height: 390px;
  }

  .robot-feature-copy {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .robot-feature-title {
    font-size: 32px;
  }

  .home-module-grid {
    grid-template-columns: 1fr;
  }

  .module-card h3 {
    font-size: 22px;
  }
}

/* Selected homepage direction: modular Physical Intelligence composition. */
.primary-display .display-copy {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: 0;
  text-align: left;
}

.primary-display .showcase-meta,
.primary-display .showcase-serial,
.primary-display .showcase-title,
.primary-display .showcase-brandline,
.primary-display .mission-line {
  position: absolute;
  z-index: 4;
}

.primary-display .showcase-meta {
  top: 18%;
  left: 3.5%;
}

.primary-display .showcase-kicker {
  margin: 0 0 12px;
  color: var(--green-soft);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.primary-display .showcase-caption {
  max-width: 420px;
  margin: 0;
  color: rgba(244, 246, 241, 0.62);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
}

.primary-display .showcase-serial {
  top: 18%;
  right: 3.5%;
  margin: 0;
  color: rgba(244, 246, 241, 0.58);
  font-size: 12px;
  font-weight: 500;
}

.primary-display .showcase-title {
  top: 51%;
  left: 50%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  width: 93%;
  margin: 0;
  transform: translate(-50%, -50%);
  line-height: 0.82;
  white-space: nowrap;
}

.primary-display .showcase-title span {
  display: block;
}

.primary-display .showcase-solid {
  color: var(--text);
  font-size: 7.2vw;
  font-weight: 800;
  text-align: left;
}

.primary-display .showcase-outline {
  color: transparent;
  font-size: 6.65vw;
  font-weight: 700;
  text-align: right;
  -webkit-text-stroke: 1px rgba(244, 246, 241, 0.9);
}

.primary-display .showcase-brandline {
  left: 3.5%;
  bottom: 6.5%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-display .showcase-brandline .display-logo {
  position: static;
  width: 42px;
  opacity: 0.92;
  transform: none;
}

.primary-display .showcase-brandline p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.primary-display .showcase-brandline p::first-letter {
  color: var(--green-soft);
}

.primary-display .mission-line {
  right: 3.5%;
  bottom: 6.5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 52%;
  max-width: none;
  margin: 0;
  gap: 0;
  border-top: 0;
}

.primary-display .mission-line span {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px 16px 0 0;
  border-right: 1px solid transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  transition: border-color 0.2s linear;
}

.primary-display .mission-line span.axis-item-visible {
  border-right-color: rgba(255, 255, 255, 0.15);
}

.primary-display .mission-line span::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-display .mission-line span:nth-child(2)::before {
  transition-delay: 0.28s;
}

.primary-display .mission-line span:nth-child(3)::before {
  transition-delay: 0.56s;
}

.primary-display.hero-sequence-active .mission-line span::before {
  transform: scaleX(1);
}

.primary-display .mission-line em {
  color: inherit;
  font-style: normal;
}

.primary-display .mission-line span:last-child {
  border-right: 0;
}

.primary-display .mission-line b {
  color: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
}

/* Give the video a clean ten-second lead before the interface resolves into view. */
.primary-display.hero-sequence-pending .showcase-kicker,
.primary-display.hero-sequence-pending .showcase-caption,
.primary-display.hero-sequence-pending .showcase-serial,
.primary-display.hero-sequence-pending .showcase-title span,
.primary-display.hero-sequence-pending .showcase-brandline p,
.primary-display.hero-sequence-pending .mission-line em,
.primary-display.hero-sequence-pending .mission-line b,
.primary-display.hero-sequence-pending .showcase-brandline .display-logo {
  opacity: 0;
}

.primary-display.hero-sequence-pending .hero-text-visible,
.primary-display.hero-sequence-pending .showcase-title span.hero-text-visible,
.primary-display.hero-sequence-pending .showcase-brandline p.hero-text-visible,
.primary-display.hero-sequence-pending .mission-line em.hero-text-visible,
.primary-display.hero-sequence-pending .mission-line .axis-item-visible b,
.primary-display.hero-sequence-pending .showcase-brandline.hero-brand-visible .display-logo {
  opacity: 1;
  transition: opacity 0.12s linear;
}

.primary-display .showcase-outline.is-scrambling {
  color: transparent;
  -webkit-text-stroke-color: var(--green-soft);
}

.primary-display.hero-sequence-pending.hero-sequence-exit .showcase-kicker,
.primary-display.hero-sequence-pending.hero-sequence-exit .showcase-caption,
.primary-display.hero-sequence-pending.hero-sequence-exit .showcase-serial,
.primary-display.hero-sequence-pending.hero-sequence-exit .showcase-title span,
.primary-display.hero-sequence-pending.hero-sequence-exit .showcase-brandline p,
.primary-display.hero-sequence-pending.hero-sequence-exit .mission-line em,
.primary-display.hero-sequence-pending.hero-sequence-exit .mission-line b,
.primary-display.hero-sequence-pending.hero-sequence-exit .showcase-brandline .display-logo {
  opacity: 0;
  transition: opacity 0.48s ease;
}

.primary-display.hero-sequence-exit .mission-line span {
  border-right-color: transparent;
}

.primary-display.hero-sequence-exit .mission-line span::before {
  transform: scaleX(0);
  transform-origin: right center;
}

.primary-display.hero-sequence-exit .mission-line span:nth-child(1)::before {
  transition-delay: 0.36s;
}

.primary-display.hero-sequence-exit .mission-line span:nth-child(2)::before {
  transition-delay: 0.18s;
}

.primary-display.hero-sequence-exit .mission-line span:nth-child(3)::before {
  transition-delay: 0s;
}

.route-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.warehouse-route {
  cursor: pointer;
  outline: none;
}

.route-hit,
.route-highlight {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.route-hit {
  stroke: transparent;
  stroke-width: 24px;
  pointer-events: stroke;
}

.route-highlight {
  stroke: rgba(225, 255, 228, 0.92);
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 7;
  opacity: 0.14;
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(145, 255, 155, 0.26));
  transition: opacity 0.2s ease, stroke 0.2s ease;
}

.warehouse-route:hover .route-highlight,
.warehouse-route:focus .route-highlight,
.warehouse-route:focus-visible .route-highlight {
  stroke: rgba(235, 255, 237, 0.98);
  opacity: 0.82;
}

@media (max-width: 980px) {
  .primary-display .showcase-title {
    width: 94%;
  }

  .primary-display .showcase-brandline p {
    font-size: 15px;
  }

  .primary-display .mission-line {
    width: 58%;
  }

  .primary-display .mission-line span {
    padding-right: 10px;
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .primary-display .showcase-meta {
    top: 14%;
    left: 22px;
  }

  .primary-display .showcase-serial {
    top: 14%;
    right: 22px;
    font-size: 9px;
  }

  .primary-display .showcase-caption {
    max-width: 230px;
    font-size: 9px;
  }

  .primary-display .showcase-title {
    top: 43%;
    display: block;
    width: calc(100% - 44px);
    white-space: normal;
  }

  .primary-display .showcase-solid,
  .primary-display .showcase-outline {
    font-size: 13.5vw;
    line-height: 0.9;
    text-align: left;
  }

  .primary-display .showcase-outline {
    margin-top: 10px;
    font-size: 10.3vw;
  }

  .primary-display .showcase-brandline {
    left: 22px;
    bottom: 23%;
  }

  .primary-display .showcase-brandline .display-logo {
    width: 32px;
  }

  .primary-display .showcase-brandline p {
    font-size: 14px;
  }

  .primary-display .mission-line {
    right: 22px;
    bottom: 5%;
    left: 22px;
    width: auto;
  }

  .primary-display .mission-line span {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
