.r9-hero {
  color-scheme: dark;
  --field: #0c1f1b;
  --field-soft: #17302a;
  --white: #f4f8f5;
  --mist: #d4ded9;
  --green: #00a96e;
  --line: rgba(244, 248, 245, 0.34);
  --ease-film: cubic-bezier(0.22, 0.72, 0.2, 1);
}

.r9-hero,
.r9-hero * {
  box-sizing: border-box;
}

.r9-hero button,
.r9-hero a {
  font: inherit;
}

.r9-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: max(520px, 92vh);
  min-height: max(520px, 92svh);
  overflow: hidden;
  background: var(--field);
  color: var(--white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.r9-hero::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: rgba(0, 169, 110, 0.08);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease-film);
}

.r9-hero::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: rgba(5, 16, 14, 0.16);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s var(--ease-film);
}

.r9-factory-poster,
.r9-hero-video,
.r9-webgl-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.r9-factory-poster,
.r9-hero-video {
  object-fit: cover;
  object-position: center center;
}

.r9-factory-poster {
  z-index: 0;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 1.2s var(--ease-film),
    transform 6s var(--ease-film);
}

.r9-hero-video {
  z-index: 1;
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity 0.5s var(--ease-film),
    transform 5.5s var(--ease-film);
}

.r9-hero-video[hidden] {
  display: none;
}

.r9-webgl-layer {
  z-index: 2;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.1s var(--ease-film);
}

.r9-webgl-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}

.r9-topbar,
.r9-logo-copy,
.r9-factory-copy,
.r9-fallback-status {
  position: relative;
  z-index: 5;
}

.r9-topbar {
  position: absolute;
  top: 72px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 22px 30px;
  pointer-events: none;
}

.r9-brand-mark {
  width: 116px;
  height: auto;
  opacity: 0;
  filter: brightness(0) invert(1);
  transform: translateY(-8px);
  transition:
    opacity 0.6s ease,
    transform 0.8s var(--ease-film);
}

.r9-replay {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 21, 18, 0.46);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.6s var(--ease-film);
}

.r9-replay span {
  font-size: 20px;
  line-height: 1;
}

.r9-replay:hover {
  border-color: rgba(244, 248, 245, 0.8);
  background: rgba(8, 21, 18, 0.72);
}

.r9-replay:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.r9-logo-copy {
  position: absolute;
  right: 24px;
  bottom: 11.5%;
  left: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.8s var(--ease-film);
}

.r9-logo-copy p {
  margin: 0;
  color: rgba(244, 248, 245, 0.78);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
}

.r9-factory-copy {
  position: absolute;
  right: 30px;
  bottom: 54px;
  left: 42px;
  width: min(760px, calc(100% - 84px));
  padding-left: 24px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s ease,
    transform 1s var(--ease-film);
}

.r9-factory-copy::before {
  position: absolute;
  top: 4px;
  bottom: 2px;
  left: 0;
  width: 2px;
  background: var(--green);
  content: "";
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s var(--ease-film) 0.12s;
}

.r9-factory-copy p,
.r9-factory-copy h1 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.dv2-page .r9-hero .r9-factory-copy h1,
.dv2-page .r9-hero .r9-factory-copy p {
  color: var(--white);
}

.r9-factory-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: rgba(244, 248, 245, 0.88);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease 0.24s, transform 0.75s var(--ease-film) 0.24s;
}

.r9-factory-copy h1 {
  max-width: 750px;
  margin: 13px 0 18px;
  font-size: 56px;
  font-weight: 600;
  line-height: 0.96;
}

.r9-title-line {
  display: block;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.95s var(--ease-film);
}

.r9-title-line:nth-child(1) { transition-delay: 0.33s; }
.r9-title-line:nth-child(2) { transition-delay: 0.44s; }
.r9-title-line:nth-child(3) { transition-delay: 0.55s; }

.r9-factory-support {
  max-width: 355px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease 0.7s, transform 0.75s var(--ease-film) 0.7s;
}

.r9-factory-support p {
  margin: 0;
  color: var(--mist);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.r9-factory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease 0.82s, transform 0.75s var(--ease-film) 0.82s;
}

.r9-factory-actions a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 248, 245, 0.58);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.r9-factory-actions .r9-primary {
  border-color: var(--green);
  background: var(--green);
  color: #04130f;
}

.r9-factory-actions a:hover,
.r9-factory-actions a:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: #071612;
}

.r9-scroll {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 248, 245, 0.8);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-film);
}

.r9-scroll span:last-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(244, 248, 245, 0.5);
  border-radius: 50%;
  font-size: 15px;
}

.r9-fallback-status {
  position: absolute;
  right: 30px;
  bottom: 30px;
  max-width: 280px;
  margin: 0;
  color: rgba(244, 248, 245, 0.7);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
  opacity: 0;
}

.r9-hero[data-stage="LOGO_HOLD"] .r9-logo-copy {
  opacity: 1;
  transform: translateY(0);
}

.r9-hero[data-stage="Z_SCATTER"] .r9-logo-copy {
  opacity: 0;
  transform: translateY(-8px);
}

.r9-hero.is-video-live .r9-hero-video,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-hero-video,
.r9-hero[data-stage="FINAL_HOLD"] .r9-hero-video,
.r9-hero.is-final .r9-hero-video {
  opacity: 1;
  transform: scale(1);
}

.r9-hero.is-video-live[data-stage="Z_SCATTER"] .r9-hero-video {
  opacity: 0.62;
  transform: scale(1.008);
}

.r9-hero.is-video-live[data-stage="Z_SCATTER"] .r9-webgl-layer,
.r9-hero.is-video-live[data-stage="Z_SCATTER"]::before {
  opacity: 0.68;
}

.r9-hero[data-stage="FACTORY_REVEAL"] .r9-webgl-layer,
.r9-hero[data-stage="FINAL_HOLD"] .r9-webgl-layer,
.r9-hero.is-final .r9-webgl-layer {
  opacity: 0;
}

.r9-hero[data-stage="FACTORY_REVEAL"]::after,
.r9-hero[data-stage="FINAL_HOLD"]::after,
.r9-hero.is-final::after,
.r9-hero.is-static::after {
  opacity: 1;
}

.r9-hero[data-stage="FACTORY_REVEAL"]::before,
.r9-hero[data-stage="FINAL_HOLD"]::before,
.r9-hero.is-final::before,
.r9-hero.is-static::before {
  background: linear-gradient(90deg, rgba(3, 12, 10, 0.7) 0%, rgba(3, 12, 10, 0.48) 42%, rgba(3, 12, 10, 0.06) 76%);
  opacity: 1;
}

.r9-hero[data-stage="FACTORY_REVEAL"] .r9-brand-mark,
.r9-hero[data-stage="FINAL_HOLD"] .r9-brand-mark,
.r9-hero.is-final .r9-brand-mark,
.r9-hero.is-static .r9-brand-mark,
.r9-hero[data-stage="FINAL_HOLD"] .r9-replay,
.r9-hero.is-final .r9-replay,
.r9-hero.is-static .r9-replay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.r9-hero[data-stage="FINAL_HOLD"] .r9-factory-copy,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-factory-copy,
.r9-hero.is-final .r9-factory-copy,
.r9-hero.is-static .r9-factory-copy {
  opacity: 1;
  transform: translateY(0);
}

.r9-hero[data-stage="FINAL_HOLD"] .r9-scroll,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-scroll,
.r9-hero.is-final .r9-scroll,
.r9-hero.is-static .r9-scroll {
  opacity: 1;
  transform: translateY(0);
}

.r9-hero.is-static .r9-factory-poster {
  opacity: 1;
  transform: scale(1);
}

.r9-hero.is-static .r9-hero-video,
.r9-hero.is-static .r9-webgl-layer,
.r9-hero.is-static .r9-logo-copy {
  display: none;
}

.r9-hero.is-static .r9-fallback-status {
  opacity: 1;
}

.r9-hero[data-stage="FINAL_HOLD"] .r9-factory-copy::before,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-factory-copy::before,
.r9-hero.is-final .r9-factory-copy::before,
.r9-hero.is-static .r9-factory-copy::before {
  transform: scaleY(1);
}

.r9-hero[data-stage="FINAL_HOLD"] .r9-factory-identity,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-factory-identity,
.r9-hero.is-final .r9-factory-identity,
.r9-hero.is-static .r9-factory-identity,
.r9-hero[data-stage="FINAL_HOLD"] .r9-title-line,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-title-line,
.r9-hero.is-final .r9-title-line,
.r9-hero.is-static .r9-title-line,
.r9-hero[data-stage="FINAL_HOLD"] .r9-factory-support,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-factory-support,
.r9-hero.is-final .r9-factory-support,
.r9-hero.is-static .r9-factory-support,
.r9-hero[data-stage="FINAL_HOLD"] .r9-factory-actions,
.r9-hero[data-stage="FACTORY_REVEAL"] .r9-factory-actions,
.r9-hero.is-final .r9-factory-actions,
.r9-hero.is-static .r9-factory-actions {
  opacity: 1;
  transform: translateY(0);
}

.r9-material-slides,
.r9-material-slide,
.r9-material-slide > img,
.r9-material-shade {
  position: absolute;
  inset: 0;
}

.r9-material-slides {
  z-index: 4;
  pointer-events: none;
}

.r9-material-slide {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity 0.8s var(--ease-film), transform 6s var(--ease-film);
}

.r9-material-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.r9-material-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r9-material-slide--interface > img { object-position: center; }
.r9-material-slide--motion > img { object-position: center; }
.r9-material-slide--platform > img { object-position: center; }

.r9-material-shade {
  background: linear-gradient(90deg, rgba(3, 13, 17, 0.88) 0%, rgba(3, 13, 17, 0.48) 45%, rgba(3, 13, 17, 0.15) 100%);
}

.r9-material-slide--motion .r9-material-shade { background: linear-gradient(90deg, rgba(6, 24, 32, 0.88) 0%, rgba(6, 24, 32, 0.45) 48%, rgba(6, 24, 32, 0.1) 100%); }
.r9-material-slide--platform .r9-material-shade { background: linear-gradient(90deg, rgba(19, 15, 10, 0.86) 0%, rgba(19, 15, 10, 0.43) 48%, rgba(19, 15, 10, 0.12) 100%); }

.r9-material-copy {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  left: 30px;
  width: min(540px, calc(100% - 60px));
  color: var(--white);
}

.r9-material-copy::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--green);
  content: "";
}

.r9-material-copy p:first-child {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.r9-material-copy h2 {
  max-width: 520px;
  margin: 8px 0 14px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.04;
}

.r9-material-copy p:not(:first-child) {
  max-width: 460px;
  margin: 0;
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.r9-material-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.r9-material-actions a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 248, 245, 0.58);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.r9-material-actions .r9-primary { border-color: var(--green); background: var(--green); color: #04130f; }
.r9-material-actions a:hover, .r9-material-actions a:focus-visible { border-color: var(--white); background: var(--white); color: #071612; }

.r9-chapter-nav {
  position: absolute;
  z-index: 7;
  right: 30px;
  bottom: 92px;
  display: flex;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.65s var(--ease-film);
}

.r9-hero.is-chapter-ready .r9-chapter-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.r9-chapter-nav button {
  display: inline-flex;
  min-width: 66px;
  min-height: 42px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(244, 248, 245, 0.35);
  background: rgba(4, 16, 18, 0.48);
  color: rgba(244, 248, 245, 0.72);
  cursor: pointer;
}

.r9-chapter-nav button b { font-size: 10px; }
.r9-chapter-nav button span { font-size: 10px; font-weight: 700; }
.r9-chapter-nav button.is-active, .r9-chapter-nav button:hover, .r9-chapter-nav button:focus-visible { border-color: var(--green); background: var(--green); color: #04130f; }
.r9-chapter-nav button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.r9-hero.is-material-slide .r9-factory-poster,
.r9-hero.is-material-slide .r9-hero-video,
.r9-hero.is-material-slide .r9-webgl-layer,
.r9-hero.is-material-slide .r9-logo-copy,
.r9-hero.is-material-slide .r9-factory-copy,
.r9-hero.is-material-slide .r9-replay,
.r9-hero.is-material-slide .r9-scroll,
.r9-hero.is-material-slide .r9-fallback-status { opacity: 0; pointer-events: none; }

/* Keep chapter copy readable against the shared page typography and remove
   the factory story immediately when a material chapter takes over. */
.dv2-page .r9-hero .r9-material-copy,
.dv2-page .r9-hero .r9-material-copy h2,
.dv2-page .r9-hero .r9-material-copy p {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.dv2-page .r9-hero .r9-material-copy p:not(:first-child) { color: var(--mist); }

.r9-hero.is-material-slide .r9-factory-copy,
.r9-hero.is-material-slide .r9-logo-copy,
.r9-hero.is-material-slide .r9-replay,
.r9-hero.is-material-slide .r9-scroll,
.r9-hero.is-material-slide .r9-fallback-status {
  visibility: hidden;
}

.r9-hero.is-carousel-hold .r9-factory-poster { opacity: 1; transform: scale(1); }
.r9-hero.is-carousel-hold .r9-hero-video, .r9-hero.is-carousel-hold .r9-webgl-layer { display: none; }

@media (max-width: 680px) {
  .r9-material-copy { right: 18px; bottom: max(28px, env(safe-area-inset-bottom)); left: 18px; width: auto; }
  .r9-material-copy::before { width: 36px; margin-bottom: 13px; }
  .r9-material-copy h2 { max-width: 330px; margin: 6px 0 10px; font-size: 27px; line-height: 1.08; }
  .r9-material-copy p:not(:first-child) { max-width: 330px; font-size: 10px; }
  .r9-material-copy p:first-child { font-size: 9px; }
  .r9-material-actions { gap: 8px; margin-top: 14px; }
  .r9-material-actions a { min-height: 38px; padding: 0 12px; font-size: 9px; }
  .r9-chapter-nav { top: 82px; right: 18px; bottom: auto; }
  .r9-chapter-nav button { width: 34px; min-width: 34px; min-height: 34px; padding: 0; justify-content: center; }
  .r9-chapter-nav button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .r9-material-slide, .r9-chapter-nav { transition: none; }
}

@media (max-width: 680px) {
  .r9-hero {
    min-height: max(620px, 92svh);
  }

  .r9-factory-poster,
  .r9-hero-video {
    object-position: 55% center;
  }

  .r9-topbar {
    min-height: 66px;
    padding: 10px 18px;
  }

  .r9-brand-mark {
    width: 98px;
  }

  .r9-replay {
    width: 42px;
    height: 42px;
  }

  .r9-logo-copy {
    right: 18px;
    bottom: 14%;
    left: 18px;
  }

  .r9-logo-copy p {
    font-size: 10px;
  }

  .r9-factory-copy {
    right: 16px;
    bottom: max(26px, env(safe-area-inset-bottom));
    left: 16px;
    width: auto;
    padding-left: 16px;
  }

  .r9-factory-copy::before {
    top: 3px;
    bottom: 1px;
    width: 2px;
    margin: 0;
  }

  .r9-factory-copy h1 {
    max-width: none;
    margin: 9px 0 12px;
    font-size: 36px;
    line-height: 0.98;
  }

  .r9-factory-identity {
    gap: 5px;
    font-size: 9px;
  }

  .r9-factory-support {
    max-width: 290px;
  }

  .r9-factory-support p {
    font-size: 9px;
  }

  .r9-fallback-status {
    display: none;
  }

  .r9-factory-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .r9-factory-actions a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 9px;
  }

  .r9-scroll {
    display: none;
  }
}

@media (min-width: 681px) and (max-height: 650px) {
  .r9-factory-copy {
    bottom: 24px;
  }

  .r9-factory-copy h1 {
    max-width: 590px;
    margin: 8px 0 12px;
    font-size: 42px;
  }

  .r9-factory-actions {
    margin-top: 12px;
  }

  .r9-scroll {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r9-factory-poster,
  .r9-hero-video,
  .r9-webgl-layer,
  .r9-brand-mark,
  .r9-replay,
  .r9-logo-copy,
  .r9-factory-copy,
  .r9-factory-identity,
  .r9-title-line,
  .r9-factory-support,
  .r9-factory-actions,
  .r9-factory-copy::before {
    transition: none;
  }

  .r9-hero-video,
  .r9-webgl-layer,
  .r9-logo-copy {
    display: none;
  }

  .r9-factory-poster {
    opacity: 1;
    transform: none;
  }

  .r9-brand-mark,
  .r9-replay,
  .r9-factory-copy {
    opacity: 1;
    transform: none;
  }
}
