/* A continuous, editorial story over one persistent industrial scene. */
.page-home {
  background: #06151c;
  color: #edf4ef;
}
.factory-experience {
  --signal: 0;
  --scene-progress: 0;
  position: relative;
  isolation: isolate;
  background: #06151c;
  color: #eef6f2;
}
.factory-scene-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.factory-interface-track {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.factory-interface {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: clip;
  pointer-events: none;
}
.factory-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: clip;
  background: #06151c;
  z-index: 1;
}
.factory-canvas,
.factory-fallback,
.factory-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.factory-canvas {
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.factory-ready .factory-canvas {
  opacity: 1;
}
/* The first paint shares the scene palette. No alternate photograph is loaded. */
.factory-fallback {
  overflow: clip;
  background: radial-gradient(ellipse at 73% 54%, #123237 0%, #06151c 65%);
  transition: opacity 0.55s;
}
.factory-loading-grid {
  position: absolute;
  inset: 30% -20% -50% 35%;
  background-image:
    linear-gradient(#42a18b16 1px, transparent 1px),
    linear-gradient(90deg, #42a18b16 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(650px) rotateX(60deg) rotateZ(-20deg);
  mask-image: radial-gradient(ellipse, #000, transparent 68%);
}
.factory-ready .factory-fallback {
  opacity: 0;
}
.factory-vignette {
  pointer-events: none;
  background:
    linear-gradient(90deg, #06151c99, transparent 58%),
    linear-gradient(
      0deg,
      #06151c 0%,
      transparent 25%,
      transparent 85%,
      #06151c80
    );
}
.factory-narrative {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.factory-beat {
  min-height: max(92svh, 700px);
  display: flex;
  align-items: center;
  padding: 140px 5% 110px;
  scroll-margin-top: 0;
}
.factory-copy {
  width: 45%;
  max-width: 650px;
  pointer-events: auto;
}
.factory-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #a7c8bf;
  line-height: 1.8;
  margin: 0 0 24px;
}
.factory-kicker > span {
  width: 4px;
  height: 18px;
  background: #34dfaf;
  flex-shrink: 0;
}
.factory-copy h1 {
  font-size: clamp(44px, 4.55vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 550;
  text-wrap: balance;
}
.factory-intro {
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.65;
  margin-top: 25px;
  color: #b3ccc5;
  max-width: 400px;
}
.factory-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.factory-actions .button {
  font-size: 11px;
  padding: 16px 20px;
  gap: 20px;
  background: #3be2b2;
  color: #06241d;
}
.factory-demo {
  color: #d1e4db;
  font-size: 11px;
  border-bottom: 1px solid #b4daca55;
  padding-block: 12px;
}
.opening-index {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 38px;
  font-size: 9px;
  color: #779b91;
  letter-spacing: 0.05em;
}
.opening-index > span:last-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.opening-index i {
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, #385e54, #4bdcb0);
}
.factory-story-card {
  pointer-events: auto;
  width: 410px;
  max-width: 40%;
  padding: 28px 30px 24px;
  background: linear-gradient(135deg, #0b2329f2, #071920df);
  border: 1px solid #527b7148;
  border-top-color: #75ba9a8a;
  box-shadow: 0 25px 80px #0002;
  backdrop-filter: blur(18px);
  position: relative;
}
.factory-story-card:before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: -1px;
  width: 36px;
  height: 2px;
  background: #56e9ba;
}
.story-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 27px;
}
.story-card-number {
  color: #61c9ab;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding-inline-end: 12px;
  border-inline-end: 1px solid #668e8055;
}
.story-card-meta p {
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: #a2c5b9;
  margin: 0;
}
.story-card-cross {
  color: #70b69e;
  margin-inline-start: auto;
  font-size: 16px;
}
.factory-story-card h2 {
  font-size: clamp(29px, 2.65vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}
.story-card-body {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #b3c9c2;
}
.story-card-facts {
  margin: 23px 0 0;
}
.story-card-facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid #82ae9726;
}
.story-card-facts dt {
  color: #e5eee7;
  font-size: 11px;
  line-height: 1.65;
  font-weight: 500;
}
.story-card-facts dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: #87a99c;
}
.story-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 550;
  color: #57e5b5;
  border-top: 1px solid #82ae9726;
  padding-top: 19px;
  margin-top: 8px;
}
.story-card-link span {
  font-size: 18px;
  transition: transform 0.2s;
}
.story-card-link:hover span {
  transform: translate(2px, -2px);
}
.story-sectors {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
}
.story-sectors li {
  border: 1px solid #79af9855;
  padding: 7px 9px;
  font-size: 9px;
  color: #b7d4c8;
}
.factory-status {
  position: absolute;
  inset-inline-end: 5%;
  top: 114px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a4bdb5;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68e4b8;
  box-shadow: 0 0 10px #30e7b4;
}
.factory-status-rule {
  width: 32px;
  height: 1px;
  background: #4a7164;
}
[data-factory-percent] {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  min-width: 29px;
  color: #dbf4e5;
  direction: ltr;
}
.factory-unit {
  opacity: 0.55;
  font-size: 8px;
}
.factory-scene-caption {
  position: absolute;
  bottom: 155px;
  inset-inline-end: 5%;
  color: #80aa99;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.scene-cross {
  font-size: 20px;
  color: #4cd4aa;
}
.factory-controls {
  pointer-events: auto;
  position: absolute;
  z-index: 4;
  inset-inline: 5%;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.factory-scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b7cfc4;
  font-size: 10px;
  white-space: nowrap;
}
.scroll-mouse {
  width: 18px;
  height: 27px;
  border: 1px solid #779b8d;
  border-radius: 10px;
  position: relative;
}
.scroll-mouse:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 7px;
  width: 2px;
  height: 6px;
  background: #58e7bd;
  animation: scroll-tick 1.8s ease-in-out infinite;
}
@keyframes scroll-tick {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}
.factory-timeline {
  width: 650px;
  max-width: 70%;
  margin-inline-start: auto;
}
.factory-stage-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.factory-stage-buttons button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8eada0;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  white-space: nowrap;
}
.factory-stage-buttons button span {
  color: #527767;
  font-size: 8px;
}
.factory-stage-buttons button[aria-pressed="true"] {
  color: #e5fff0;
}
.factory-stage-buttons button[aria-pressed="true"] span {
  color: #51e5b5;
}
.factory-timeline input {
  display: block;
  appearance: none;
  width: 100%;
  height: 2px;
  direction: ltr;
  background: linear-gradient(
    90deg,
    #30e7b4 calc(var(--scene-progress) * 100%),
    #42605666 0
  );
  cursor: ew-resize;
  outline-offset: 7px;
}
.factory-timeline input::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border: 2px solid #4aeac0;
  background: #071923;
  border-radius: 50%;
}
.factory-timeline input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 2px solid #4aeac0;
  background: #071923;
  border-radius: 50%;
}
.factory-motion {
  width: 38px;
  height: 38px;
  border: 1px solid #6e8f7866;
  border-radius: 50%;
  color: #d5ece4;
  background: #08242bcc;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  cursor: pointer;
}
.factory-footnote {
  position: absolute;
  bottom: 12px;
  inset-inline: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #79998c;
  font-size: 8px;
  letter-spacing: 0.02em;
}
.factory-footnote a {
  pointer-events: auto;
  color: #a2c4b4;
  font-size: 9px;
  padding: 5px 0;
}
.factory-paused .scroll-mouse:after {
  animation-play-state: paused;
}
/* The editorial close carries the material language into the rest of the page. */
.home-perspectives {
  padding: 125px 0;
  position: relative;
  background:
    radial-gradient(ellipse at 95% 20%, #12392d66, transparent 60%), #081a20;
  border-block: 1px solid #719f812a;
}
.home-perspectives > .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 90px;
  align-items: start;
}
.page-home .eyebrow {
  color: #6cba9c;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.perspectives-intro h2 {
  margin: 24px 0;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.12;
  font-weight: 450;
  letter-spacing: -0.04em;
}
.perspectives-intro > p:last-child {
  max-width: 350px;
  color: #9bb8a9;
  font-size: 14px;
  line-height: 1.8;
}
.perspective-link {
  display: grid;
  grid-template-columns: 25px 1fr 35px;
  gap: 18px;
  border-top: 1px solid #719f8155;
  padding: 30px 0;
  transition: border-color 0.2s;
}
.perspective-link:last-child {
  border-bottom: 1px solid #719f8155;
}
.perspective-link:hover {
  border-color: #5fe6ae;
}
.perspective-number {
  color: #63ba99;
  font-size: 11px;
  padding-top: 6px;
}
.perspective-link h3 {
  font-size: 22px;
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1.35;
}
.perspective-link p {
  margin: 12px 0 19px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.7;
  color: #9eb9aa;
}
.perspective-cta {
  color: #5be5b2;
  font-size: 10px;
}
.perspective-glyph {
  color: #4bd9a3;
  font-size: 32px;
  line-height: 1.1;
  transition: transform 0.4s;
}
.perspective-link:hover .perspective-glyph {
  transform: rotate(12deg);
}
.page-home .partners {
  background: #dfe7df;
  color: #112820;
  padding: 85px 0;
}
.page-home .partner-heading h2 {
  font-size: clamp(25px, 2.8vw, 42px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.page-home .partners .eyebrow {
  color: #37755e;
}
.page-home .partner-heading p {
  color: #476659;
  font-size: 13px;
}
.page-home .partner-grid {
  gap: 0;
  border-block: 1px solid #1c4e3728;
}
.page-home .partner-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 26px 30px;
  border-inline-end: 1px solid #1c4e3728;
  box-shadow: none;
}
.page-home .partner-card:last-child {
  border-inline-end: 0;
}
.page-home .partner-card:hover {
  background: #ffffff60;
  transform: none;
}
.page-home .partner-card img {
  mix-blend-mode: multiply;
  width: 83px;
  height: 83px;
}
.page-home .partner-card span {
  color: #284e3b;
  font-size: 12px;
}
.page-home .faq {
  background: #081a20;
  color: #ebf2ea;
  padding: 100px 0;
}
.page-home .faq h2 {
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 450;
  letter-spacing: -0.035em;
}
.page-home .faq-list {
  border-color: #719f8138;
}
.page-home .faq-list details {
  border-color: #719f8138;
}
.page-home .faq-list summary {
  color: #c8dbce;
  font-size: 15px;
  font-weight: 450;
}
.page-home .faq-list p {
  color: #9ab7a8;
  font-size: 13px;
  line-height: 1.9;
}
.page-home .faq-list summary span {
  color: #62d7a8;
}
.home-closing {
  position: relative;
  padding: 100px 0 110px;
  border-top: 1px solid #719f8138;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 100%, #14544599, transparent 58%), #081a20;
}
.home-closing:after {
  content: "";
  position: absolute;
  inset: 0 0 -60% 50%;
  transform: perspective(500px) rotateX(50deg) rotateZ(-20deg);
  background-image:
    linear-gradient(#47bb8b17 1px, transparent 1px),
    linear-gradient(90deg, #47bb8b17 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.home-closing h2 {
  font-size: clamp(44px, 6.1vw, 90px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 450;
  margin: 25px 0;
}
.home-closing > .container {
  position: relative;
  z-index: 1;
}
.home-closing p:not(.eyebrow) {
  font-size: 14px;
  color: #a0bead;
  margin-bottom: 30px;
  max-width: 350px;
  line-height: 1.7;
}
.home-closing .button {
  font-size: 12px;
}
.closing-coordinate {
  position: absolute;
  inset-inline-end: 0;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #77c4a0;
  font-size: 13px;
  letter-spacing: 0.15em;
}
.closing-coordinate i {
  height: 1px;
  width: 80px;
  background: #60b48766;
}
.page-home .site-footer {
  background: #041116;
  border-top: 1px solid #719f812a;
}
.factory-static .factory-canvas,
.factory-static .factory-controls,
.factory-static .factory-status,
.factory-static .agent-constellation,
.factory-static .factory-scene-caption {
  display: none;
}
html[dir="rtl"] .factory-vignette {
  background:
    linear-gradient(270deg, #06151c99, transparent 58%),
    linear-gradient(
      0deg,
      #06151c 0%,
      transparent 25%,
      transparent 85%,
      #06151c80
    );
}
html[dir="rtl"] .factory-copy h1,
html[dir="rtl"] .factory-story-card h2,
html[dir="rtl"] .home-perspectives h2,
html[dir="rtl"] .home-closing h2 {
  letter-spacing: 0;
  line-height: 1.3;
}
html[dir="rtl"] .factory-kicker,
html[dir="rtl"] .story-card-meta p,
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}
html[dir="rtl"] .story-card-meta p {
  font-size: 10px;
}
html[dir="rtl"] .story-card-body {
  line-height: 1.95;
}
html[dir="rtl"] .factory-timeline input {
  direction: rtl;
  background: linear-gradient(
    270deg,
    #30e7b4 calc(var(--scene-progress) * 100%),
    #42605666 0
  );
}
@media (min-width: 1500px) {
  .factory-story-card {
    width: 460px;
    padding: 35px;
  }
  .story-card-body {
    font-size: 15px;
  }
  .story-card-facts dt,
  .story-card-facts dd {
    font-size: 12px;
  }
}
@media (max-width: 1050px) {
  .factory-story-card {
    max-width: 46%;
    padding: 24px;
  }
  .factory-copy {
    width: 48%;
  }
  .factory-copy h1 {
    font-size: 46px;
  }
  .factory-controls {
    gap: 20px;
  }
  .factory-timeline {
    max-width: 74%;
  }
  .factory-scroll-cue {
    font-size: 9px;
  }
  .home-perspectives > .container {
    gap: 45px;
  }
}
@media (max-width: 800px) {
  .factory-stage,
  .factory-interface {
    min-height: 740px;
  }

  .factory-beat {
    min-height: max(100svh, 820px);
    padding: 115px 5% 390px;
    align-items: flex-start;
  }
  .factory-beat--opening {
    padding-bottom: 380px;
  }
  .factory-copy {
    width: 92%;
    max-width: 440px;
  }
  .factory-copy h1 {
    font-size: 44px;
  }
  .factory-kicker {
    font-size: 8px;
    margin-bottom: 18px;
  }
  .factory-intro {
    font-size: 14px;
    margin-top: 18px;
    max-width: 360px;
  }
  .factory-actions {
    margin-top: 24px;
    gap: 18px;
  }
  .factory-actions .button {
    font-size: 10px;
    padding: 13px 16px;
  }
  .factory-demo {
    font-size: 10px;
  }
  .opening-index {
    margin-top: 25px;
  }
  .factory-story-card {
    width: 390px;
    max-width: 88%;
    padding: 22px 24px;
    background: linear-gradient(135deg, #0b2329f2, #071920c9);
  }
  .factory-story-card h2 {
    font-size: 33px;
  }
  .story-card-meta {
    margin-bottom: 20px;
  }
  .story-card-body {
    font-size: 12px;
    line-height: 1.75;
    margin-top: 16px;
  }
  .story-card-facts {
    margin-top: 16px;
  }
  .story-card-facts > div {
    padding: 10px 0;
    grid-template-columns: 95px 1fr;
    gap: 12px;
  }
  .story-card-facts dt,
  .story-card-facts dd {
    font-size: 10px;
  }
  .story-card-link {
    font-size: 10px;
    padding-top: 15px;
  }
  .factory-status {
    top: 95px;
    font-size: 7px;
    gap: 7px;
  }
  .factory-status-rule {
    width: 16px;
  }
  [data-factory-percent] {
    font-size: 11px;
    min-width: 23px;
  }
  .factory-unit {
    font-size: 6px;
  }
  .factory-controls {
    bottom: 55px;
    gap: 18px;
  }
  .factory-scroll-cue {
    display: none;
  }
  .factory-timeline {
    width: 100%;
    max-width: none;
  }
  .factory-stage-buttons {
    gap: 8px;
  }
  .factory-stage-buttons button {
    font-size: 8px;
    gap: 5px;
  }
  .factory-stage-buttons button span {
    display: none;
  }
  .factory-motion {
    width: 32px;
    height: 32px;
  }
  .factory-scene-caption {
    bottom: 125px;
    font-size: 7px;
  }
  .factory-footnote {
    font-size: 6px;
    bottom: 17px;
    gap: 10px;
  }
  .factory-footnote a {
    font-size: 7px;
  }
  .agent-constellation {
    transform: scale(0.65);
    transform-origin: center;
  }
  .agent-satellite {
    display: none;
  }
  .home-perspectives {
    padding: 75px 0;
  }
  .home-perspectives > .container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .perspectives-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 35px;
  }
  .perspectives-intro > .eyebrow {
    grid-column: 1/-1;
  }
  .perspectives-intro h2 {
    font-size: 36px;
  }
  .perspectives-intro > p:last-child {
    align-self: center;
    font-size: 12px;
  }
  .perspective-link {
    padding: 25px 0;
  }
  .perspective-link h3 {
    font-size: 21px;
  }
  .page-home .partners,
  .page-home .faq {
    padding: 65px 0;
  }
  .page-home .partner-card {
    padding: 20px 10px;
  }
  .page-home .partner-card span {
    font-size: 10px;
  }
  .page-home .partner-card img {
    width: 65px;
    height: 65px;
  }
  .home-closing {
    padding: 70px 0 110px;
  }
  .closing-coordinate {
    bottom: -55px;
    inset-inline-end: auto;
  }
}
@media (max-width: 480px) {
  .factory-copy h1 {
    font-size: 37px;
  }
  .factory-copy {
    width: 100%;
  }
  .factory-intro {
    font-size: 13px;
  }
  .factory-story-card {
    max-width: 100%;
    width: 100%;
    padding: 21px;
  }
  .factory-story-card h2 {
    font-size: 31px;
  }
  .story-card-meta p {
    font-size: 7px;
  }
  .factory-beat {
    padding-top: 116px;
    min-height: 900px;
  }
  .factory-actions {
    gap: 14px;
  }
  .factory-actions .button {
    font-size: 9px;
    padding: 12px;
  }
  .factory-demo {
    font-size: 9px;
  }
  .perspectives-intro {
    display: block;
  }
  .perspectives-intro h2 {
    margin: 22px 0;
  }
  .perspective-link {
    grid-template-columns: 20px 1fr 24px;
    gap: 12px;
  }
  .perspective-link h3 {
    font-size: 20px;
  }
  .perspective-glyph {
    font-size: 25px;
  }
  .page-home .partner-grid {
    grid-template-columns: 1fr;
  }
  .page-home .partner-card {
    border-inline-end: 0;
    border-bottom: 1px solid #1c4e3728;
    padding: 15px 0;
  }
  .page-home .partner-card:last-child {
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .factory-canvas {
    transition: none;
  }
  .agent-orbit,
  .scroll-mouse:after {
    animation: none;
  }
  .factory-story-card {
    backdrop-filter: none;
  }
  .factory-experience * {
    scroll-behavior: auto;
  }
}

@media (max-width: 800px) {
  .factory-controls:before {
    content: "";
    position: absolute;
    inset: -20px -6vw -45px;
    background: linear-gradient(0deg, #06151c 0%, #06151cf0 65%, transparent);
    z-index: -1;
    pointer-events: none;
  }
}
.factory-interface-track {
  visibility: hidden;
}
.factory-ready .factory-interface-track {
  visibility: visible;
}
.factory-footnote {
  z-index: 5;
}
@media (max-width: 800px) {
  .factory-footnote {
    font-size: 7px;
  }
  .factory-footnote a {
    font-size: 8px;
  }
}
/* Keep navigation reachable on short landscape and small phone viewports. */
.factory-stage,
.factory-interface {
  min-height: 0;
}
@media (max-width: 360px) {
  .factory-story-card {
    padding: 18px;
  }
  .factory-story-card h2 {
    font-size: 27px;
  }
  .story-card-meta {
    margin-bottom: 17px;
  }
  .factory-stage-buttons {
    gap: 5px;
  }
  .factory-stage-buttons button {
    font-size: 7px;
  }
}
/* Connected Raqib story: restrained labels, no invented metrics or live status. */
.factory-status {
  display: none;
}
.raqib-system {
  position: absolute;
  inset-inline-end: 5%;
  top: 112px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 49%;
  color: #a9cfc0;
}
.raqib-system-mark {
  width: 30px;
  height: 34px;
  clip-path: polygon(50% 0, 96% 21%, 86% 73%, 50% 100%, 14% 73%, 4% 21%);
  display: grid;
  place-items: center;
  background: #1b9a7a35;
  border-top: 2px solid #6aecc2;
  font:
    600 18px/1 Inter,
    sans-serif;
  color: #81e8bf;
}
.raqib-system strong {
  display: block;
  font:
    600 10px/1.2 Inter,
    sans-serif;
  letter-spacing: 0.17em;
}
.raqib-system > div > span {
  display: block;
  font-size: 6px;
  letter-spacing: 0.1em;
  margin-top: 6px;
  color: #6d9d8a;
}
.raqib-system .raqib-system-layers {
  display: flex;
  gap: 14px;
  padding-inline-start: 16px;
  margin-inline-start: 4px;
  border-inline-start: 1px solid #548e7344;
}
.raqib-system-layers span {
  color: #638778;
  transition: color 0.5s;
  font-size: 8px;
}
.raqib-system-layers span:before {
  content: "";
  display: block;
  height: 2px;
  width: 13px;
  background: #426c5966;
  margin-bottom: 7px;
  transition: background 0.5s;
}
.raqib-system-layers span.is-lit {
  color: #b7e7d1;
}
.raqib-system-layers span.is-lit:before {
  background: #5de8b1;
  box-shadow: 0 0 10px #4bdba640;
}
.scene-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.asset-label,
.scene-tag {
  position: absolute;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #c0e3d5;
  background: #061a1ee8;
  border: 1px solid #4a9b7e66;
  font-size: 9px;
  white-space: nowrap;
  transform: translateX(-15%);
  box-shadow: 0 6px 25px #0002;
}
.asset-label:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 18px;
  height: 16px;
  width: 1px;
  background: #6bc3a3;
}
.asset-label i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #75efc7;
  box-shadow: 0 0 9px #75efc777;
}
.asset-label small {
  color: #608f7c;
  font-size: 7px;
}
.scene-tag {
  font-size: 8px;
  padding: 7px 10px;
  color: #8bb4a5;
  border-color: #5d8a7438;
}
.scene-tag--twin {
  border-color: #65e4c666;
  color: #80e8cd;
}
.scene-tag--scenario {
  color: #ffd29b;
  border-color: #dbb37566;
}
.scene-tag--protection {
  color: #7eeac3;
}
.factory-scene-caption {
  max-width: 50%;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.factory-stage-buttons {
  gap: 10px;
}
.factory-timeline {
  width: 690px;
}
.factory-copy h1 {
  font-size: clamp(44px, 4.55vw, 76px);
}
.factory-intro {
  max-width: 430px;
}
.factory-story-card h2 {
  font-size: clamp(28px, 2.5vw, 40px);
}
[data-factory-beat="4"] .factory-story-card:before {
  background: #e9b679;
}
[data-factory-beat="4"] .story-card-number {
  color: #e3bf8c;
}
[data-factory-beat="4"] .factory-story-card {
  border-top-color: #ac8e6266;
}
@media (max-width: 1050px) {
  .raqib-system .raqib-system-layers {
    gap: 10px;
    padding-inline-start: 10px;
  }
  .raqib-system > div > span {
    font-size: 5px;
  }
}
@media (max-width: 800px) {
  .raqib-system {
    inset-inline: 5%;
    top: 88px;
    max-width: none;
    gap: 8px;
  }
  .raqib-system-mark {
    width: 18px;
    height: 21px;
    font-size: 12px;
  }
  .raqib-system > div {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .raqib-system strong {
    font-size: 8px;
  }
  .raqib-system > div > span {
    font-size: 6px;
    margin-top: 0;
  }
  .raqib-system .raqib-system-layers {
    display: none;
  }
  .factory-story-card h2 {
    font-size: 31px;
  }
  .factory-copy h1 {
    font-size: 42px;
  }
  .factory-stage-buttons {
    gap: 5px;
  }
  .factory-stage-buttons button {
    font-size: 7px;
  }
  .factory-controls {
    gap: 12px;
  }
  .factory-scene-caption {
    max-width: 83%;
    font-size: 6px;
    bottom: 125px;
  }
  .asset-label {
    font-size: 7px;
    padding: 6px 8px;
    gap: 5px;
  }
  .scene-tag {
    font-size: 7px;
    padding: 5px 7px;
  }
}
@media (max-width: 480px) {
  .factory-copy h1 {
    font-size: 37px;
  }
  .factory-story-card h2 {
    font-size: 30px;
  }
  .factory-stage-buttons button {
    font-size: 6.5px;
  }
}
@media (max-width: 360px) {
  .factory-story-card h2 {
    font-size: 26px;
  }
  .factory-stage-buttons button {
    font-size: 6px;
  }
}
/* Compact screens retain clear chapter targets without microscopic labels. */
@media (max-width: 600px) {
  .factory-stage-buttons button {
    font-size: 0;
    gap: 4px;
    min-width: 22px;
    min-height: 32px;
  }
  .factory-stage-buttons button span {
    display: inline-block;
    font-size: 8px;
  }
  .factory-stage-buttons button[aria-pressed="true"] {
    font-size: 8px;
  }
}
@media (min-width: 601px) and (max-width: 800px) {
  .factory-beat {
    min-height: max(100svh, 820px);
    padding: 125px 5% 115px;
    align-items: center;
  }
  .factory-story-card {
    width: 44%;
    max-width: 44%;
    padding: 23px;
  }
  .factory-story-card h2 {
    font-size: 29px;
  }
  .story-card-body {
    font-size: 12px;
  }
  .story-card-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .story-card-facts dt,
  .story-card-facts dd {
    font-size: 10px;
  }
  .factory-copy {
    width: 49%;
  }
  .factory-copy h1 {
    font-size: 43px;
  }
  .factory-intro {
    font-size: 13px;
  }
  .factory-actions {
    gap: 8px;
  }
}
@media (min-width: 801px) {
  .raqib-system strong {
    font-size: 12px;
  }
  .raqib-system > div > span {
    font-size: 7px;
  }
  .raqib-system-layers span {
    font-size: 9px;
  }
}

/* Preserve editorial contrast beside the scene on compact landscape layouts. */
@media (min-width: 601px) and (max-width: 800px) {
  .factory-vignette {
    background:
      linear-gradient(
        90deg,
        #06151c 0%,
        #06151ce8 32%,
        #06151c88 48%,
        transparent 70%
      ),
      linear-gradient(0deg, #06151c, transparent 25%);
  }
  html[dir="rtl"] .factory-vignette {
    background:
      linear-gradient(
        270deg,
        #06151c 0%,
        #06151ce8 32%,
        #06151c88 48%,
        transparent 70%
      ),
      linear-gradient(0deg, #06151c, transparent 25%);
  }
}

/* Final editorial scale: clear hierarchy, restrained colour, room for the model. */
.factory-story-card h2,
.factory-copy h1,
.perspectives-intro h2,
.home-closing h2 {
  text-wrap: balance;
}
.story-card-body,
.story-card-facts dd,
.perspectives-intro > p:last-child {
  text-wrap: pretty;
}
.story-card-body {
  color: #c0d1cc;
}
.story-card-facts dd {
  color: #a6beb5;
}
.story-card-meta p {
  color: #b2ccc1;
}
.factory-story-card {
  background: linear-gradient(135deg, #10262bef, #091c23f5);
  border-color: #557a704d;
  border-top-color: #75ba9a8a;
  box-shadow:
    0 22px 65px #00000024,
    inset 0 1px 0 #ffffff04;
}
.factory-timeline input {
  accent-color: #54d9b4;
}
.asset-label,
.scene-tag {
  border-radius: 3px;
}
.scene-tag {
  color: #b2ccc2;
}
.scene-tag--twin {
  color: #85e8cf;
}
.scene-tag--scenario {
  color: #ffce8f;
  background: #201c16ed;
  border-color: #d6a36788;
}
.scene-key {
  position: absolute;
  inset-inline-end: 5%;
  top: 166px;
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid #55796d45;
  background: #071b21e8;
  border-radius: 3px;
  color: #adc6bc;
  font-size: 9px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
[data-stage="4"] .scene-key {
  opacity: 1;
  visibility: visible;
}
.scene-key > span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.scene-key-swatch {
  width: 5px;
  height: 5px;
  display: block;
  background: #52d5b4;
  border-radius: 50%;
}
.scene-key-swatch--1 {
  background: #ffc783;
}
.scene-key-swatch--2 {
  background: #a7b9bf;
}
@media (min-width: 1051px) {
  .factory-story-card {
    width: clamp(410px, 32vw, 460px);
    padding: 30px 32px 26px;
  }
  .factory-story-card h2 {
    font-size: clamp(30px, 2.5vw, 40px);
    line-height: 1.14;
  }
  .story-card-body {
    font-size: 14px;
    line-height: 1.75;
    margin-top: 22px;
  }
  .story-card-facts > div {
    grid-template-columns: minmax(95px, 0.9fr) 1.5fr;
    gap: 18px;
    padding: 15px 0;
  }
  .story-card-facts dt,
  .story-card-facts dd {
    font-size: 12px;
    line-height: 1.6;
  }
  .story-card-meta {
    margin-bottom: 25px;
  }
  .story-card-meta p {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .story-card-link {
    font-size: 12px;
  }
  .asset-label {
    font-size: 10px;
  }
  .scene-tag {
    font-size: 9px;
  }
  .perspective-link p {
    font-size: 14px;
    max-width: 390px;
  }
  .perspective-cta {
    font-size: 12px;
  }
}
@media (max-width: 1050px) and (min-width: 801px) {
  .scene-key {
    gap: 10px;
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  .scene-key {
    display: none;
  }
  .story-card-body {
    line-height: 1.75;
  }
}
@media (max-height: 780px) and (min-width: 801px) {
  .scene-key {
    display: none;
  }
  .factory-story-card {
    padding-block: 22px;
  }
  .factory-story-card h2 {
    font-size: 31px;
  }
  .story-card-body {
    font-size: 13px;
    margin-top: 16px;
  }
  .story-card-meta {
    margin-bottom: 18px;
  }
  .story-card-facts {
    margin-top: 18px;
  }
  .story-card-facts > div {
    padding-block: 10px;
  }
  .story-card-facts dt,
  .story-card-facts dd {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-key {
    transition: none;
  }
}

/* Projected tags use their measured width for edge-safe placement. */
.asset-label,
.scene-tag {
  transform: none;
}
.scene-tag--scenario:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  height: 18px;
  width: 1px;
  background: #d6a36788;
}
@media (min-width: 1051px) {
  .factory-stage-buttons button {
    font-size: 10px;
  }
  .raqib-system-layers span {
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  .factory-story-card {
    padding: 18px 20px;
  }
  .story-card-meta {
    margin-bottom: 16px;
  }
  .story-card-body {
    margin-top: 16px;
  }
  .story-card-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
  }
  .story-card-facts > div {
    display: block;
    padding: 10px 0;
  }
  .story-card-facts > div:only-child {
    grid-column: 1 / -1;
  }
  .story-card-facts dt,
  .story-card-facts dd {
    font-size: 10px;
    line-height: 1.65;
  }
  .story-card-facts dd {
    margin-top: 5px;
  }
  .story-card-link {
    padding-top: 15px;
  }
}

/* An editorial label identifies aerial forms as software-agent metaphors. */
.scene-tag--agent { border-color:#6de9c66b; color:#c5f9e6; font-size:8px; letter-spacing:.08em; padding:7px 10px; }
.scene-tag--agent::before { content:""; width:5px; height:5px; background:#78efc7; border-radius:50%; box-shadow:0 0 12px #56e8b5; }
@media(max-width:800px) { .scene-tag--agent { display:none; } }

/* Opening aerial viewpoint; the existing chapter timeline remains the control. */
.factory-experience { --arrival: 1; --arrival-travel: 0; }
.arrival-viewfinder {
  position:absolute; inset:205px 5% 185px 49%; pointer-events:none;
  opacity:var(--arrival); color:#b4d4cc;
}
html[dir="rtl"] .arrival-viewfinder { inset-inline-start:49%; inset-inline-end:5%; }
.arrival-corner { position:absolute; width:23px; height:23px; border-color:#8ee5c568; border-style:solid; }
.arrival-corner--a { top:0; left:0; border-width:1px 0 0 1px; }
.arrival-corner--b { top:0; right:0; border-width:1px 1px 0 0; }
.arrival-corner--c { bottom:0; left:0; border-width:0 0 1px 1px; }
.arrival-corner--d { bottom:0; right:0; border-width:0 1px 1px 0; }
.arrival-heading { position:absolute; inset-inline-start:22px; top:20px; text-shadow:0 2px 12px #00181c; }
.arrival-heading span { display:block; font-size:8px; letter-spacing:.18em; color:#80d5b9; }
.arrival-heading strong { display:block; margin-top:8px; font-size:14px; font-weight:400; }
.arrival-track { position:absolute; inset-inline:22px; bottom:18px; display:flex; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px solid #83c6b32d; font-size:7px; letter-spacing:.1em; }
.arrival-track i { position:absolute; bottom:-1px; inset-inline-start:0; width:100%; height:1px; background:#87e4c2; transform:scaleX(var(--arrival-travel)); transform-origin:left; }
html[dir="rtl"] .arrival-track i { transform-origin:right; }
.factory-static .arrival-viewfinder { display:none; }
@media(max-width:800px) {
  .arrival-viewfinder { inset:55% 6% 142px; }
  html[dir="rtl"] .arrival-viewfinder { inset-inline:6%; }
  .arrival-heading { top:12px; inset-inline-start:14px; }
  .arrival-heading span { font-size:6px; }
  .arrival-heading strong { font-size:10px; margin-top:5px; }
  .arrival-track { inset-inline:14px; bottom:10px; font-size:5px; }
  .arrival-corner { width:14px; height:14px; }
}
@media(prefers-reduced-motion:reduce) { .arrival-viewfinder { display:none; } }
@media(min-width:801px) {
  .factory-beat--opening { min-height:120svh; align-items:flex-start; padding-top:max(180px,21svh); }
  .factory-beat--opening .factory-copy { position:sticky; top:max(140px,16svh); align-self:flex-start; }
}
@media(prefers-reduced-motion:reduce) and (min-width:801px) {
  .factory-beat--opening { min-height:max(100svh,760px); align-items:center; padding-top:140px; }
  .factory-beat--opening .factory-copy { position:static; align-self:auto; }
}

/* First-person optics: quiet camera cues, without fabricated live telemetry. */
.arrival-viewfinder {
  border-radius:24px;
  background:radial-gradient(ellipse at 50% 51%,transparent 44%,#04131714 72%,#04131744);
}
.arrival-heading span { display:flex; align-items:center; gap:7px; }
.camera-status-dot { width:4px; height:4px; border-radius:50%; background:#9df4d2; box-shadow:0 0 12px #65dcad66; }
.camera-mode { position:absolute; top:24px; inset-inline-end:22px; color:#90b8b2; font:500 7px/1.4 Inter,sans-serif; letter-spacing:.13em; }
.camera-lens { position:absolute; top:50%; left:50%; width:98px; height:74px; transform:translate(-50%,-50%); }
.camera-focus-bracket { position:absolute; width:12px; height:12px; border:solid #b4e2cf96; }
.camera-focus-bracket--a { top:0; left:0; border-width:1px 0 0 1px; }
.camera-focus-bracket--b { top:0; right:0; border-width:1px 1px 0 0; }
.camera-focus-bracket--c { bottom:0; left:0; border-width:0 0 1px 1px; }
.camera-focus-bracket--d { bottom:0; right:0; border-width:0 1px 1px 0; }
.camera-horizon { position:absolute; top:50%; left:-45px; width:188px; height:1px; transform:rotate(var(--camera-bank,0deg)); background:linear-gradient(90deg,#87c6b35c 0 31%,transparent 31% 69%,#87c6b35c 69%); }
.camera-pitch { position:absolute; top:42%; height:18%; width:10px; opacity:.35; background:repeating-linear-gradient(0deg,#9dd8c6 0 1px,transparent 1px 14px); }
.camera-pitch--left { left:20px; }
.camera-pitch--right { right:20px; }
.camera-view-note { position:absolute; inset-inline-end:22px; bottom:60px; font-size:6px; letter-spacing:.13em; color:#99b9b0; }
.arrival-track span { opacity:.42; transition:opacity .25s; }
[data-camera-phase="0"] .arrival-track span:nth-child(1),
[data-camera-phase="1"] .arrival-track span:nth-child(2),
[data-camera-phase="2"] .arrival-track span:nth-child(3) { opacity:1; color:#c8ffe4; }
@media(max-width:1050px) { .camera-mode { display:none; } }
@media(max-width:800px) {
  .arrival-viewfinder { border-radius:12px; }
  .camera-lens { width:54px; height:40px; }
  .camera-focus-bracket { width:8px; height:8px; }
  .camera-horizon { left:-25px; width:104px; }
  .camera-pitch { width:6px; }
  .camera-pitch--left { left:10px; }
  .camera-pitch--right { right:10px; }
  .camera-view-note { display:none; }
}
@media(prefers-reduced-motion:reduce) { .arrival-track span { transition:none; } }

.scene-tag--scenario[data-response="1"],.scene-tag--scenario[data-response="2"] { color:#bdf9dd; border-color:#68e8bd88; background:#06211ce8; }
.scene-tag--scenario[data-response="1"]:after,.scene-tag--scenario[data-response="2"]:after { background:#65ddb588; }

.scene-tag--attacker { color:#ffd1a4; border-color:#eaa77470; background:#201c18e8; font-size:8px; letter-spacing:.07em; padding:7px 10px; }
.scene-tag--attacker::before { content:""; width:5px; height:5px; background:#ffb66e; border-radius:50%; box-shadow:0 0 12px #eaa774; }
@media(max-width:800px) { .scene-tag--attacker { font-size:7px; padding:5px 7px; } }

/* Scene context has its own lane; the model stays free of floating terminology. */
.scene-label-rail {
  position:absolute;
  inset-inline-start:46%; inset-inline-end:5%; top:164px;
  min-height:30px; display:flex; align-items:center; justify-content:flex-end;
  flex-wrap:wrap; gap:8px 16px;
}
.scene-label-rail .scene-tag {
  position:static; transform:none; margin:0; padding:6px 0;
  border:0; border-radius:0; background:none; box-shadow:none;
  font-size:9px; line-height:1.5; letter-spacing:.02em;
}
.scene-label-rail .scene-tag[hidden] { display:none; }
.scene-label-rail .scene-tag::after { display:none; }
.scene-label-rail .scene-tag--scenario[data-response] { background:none; }
.scene-key,.factory-scene-caption { display:none; }
@media(min-width:801px) and (max-height:780px) {
  .factory-beat--opening { padding-top:145px; }
  .factory-beat--opening .factory-copy { top:135px; }
  .factory-copy h1 { font-size:clamp(40px,3.8vw,52px); line-height:1.06; }
  .factory-intro { font-size:15px; line-height:1.6; margin-top:21px; }
  .factory-actions { margin-top:22px; }
  .opening-index { display:none; }
}
@media(max-width:800px) {
  .scene-label-rail {
    top:auto; bottom:112px; inset-inline:5%; min-height:26px;
    justify-content:center; gap:5px 12px; padding:7px 9px;
    background:linear-gradient(90deg,transparent,#06151cf5 14% 86%,transparent);
  }
  .scene-label-rail .scene-tag { font-size:7px; padding:0; }
  .scene-label-rail .scene-tag--agent { display:none; }
  .scene-label-rail .scene-tag--attacker { letter-spacing:0; }
}
@media(min-width:801px) {
  .arrival-track { bottom:-38px; }
  .camera-view-note { display:none; }
}
@media(max-width:800px) {
  .factory-canvas {
    mask-image:linear-gradient(to bottom,#000 calc(100% - 180px),transparent calc(100% - 140px));
  }
}
/* The mobile header and chapter identify Raqib; omit a tiny duplicate lockup. */
@media(max-width:600px){.raqib-system{display:none}}
