/* Campaign landing: /registered/. Tokens from site.css only. Always dark. */

body.rg {
  background: #080A09;
  color: #F7F8F6;
  color-scheme: dark;
}

body.rg .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.rg .wrap {
  max-width: 1120px;
}

body.rg .rg-scene.mr-dark {
  background: transparent;
  border-top: 0;
  color: #F7F8F6;
}

body.rg h1,
body.rg h2,
body.rg h3 {
  color: #F7F8F6;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

body.rg h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 1.02;
}

body.rg h2 {
  margin: 0 0 20px;
  max-width: 14ch;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.06;
}

body.rg h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
}

body.rg .eyebrow {
  color: #39E58C;
}

body.rg .rg-lede {
  max-width: 28em;
  margin: 20px 0 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: #A8BAAF;
}

body.rg .mr-dark p.rg-lede,
body.rg .mr-dark .rg-services p {
  color: #A8BAAF;
}

/* Fixed vehicle + HUD. Footer’s opaque surface covers it at the end of the story. */
.rg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #080A09;
}

.rg-hud,
.rg-vehicle,
.rg-frames,
.rg-frame,
.rg-frame img {
  position: absolute;
  inset: 0;
}

.rg-vehicle {
  z-index: 1;
  display: grid;
  place-items: center;
  transform: scale(0.82) translate3d(0, 6%, 0);
  transform-origin: 50% 58%;
  will-change: transform;
}

.rg-frames {
  position: relative;
  width: min(94vw, 1600px);
  height: auto;
  aspect-ratio: 1600 / 720;
  margin: 0 auto;
  inset: auto;
}

.rg-frame {
  display: block;
  opacity: 0;
  will-change: opacity;
}

.rg-frame.is-on,
.rg-frame:first-child {
  opacity: 1;
}

.rg-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rg-hud { z-index: 2; }

.rg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(57, 229, 140, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 229, 140, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 78%);
}

.rg-scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.rg-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(57, 229, 140, 0.06), transparent);
  transform: translate3d(0, -100%, 0);
}

.rg-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.78) 0%, rgba(8, 10, 9, 0.28) 42%, transparent 68%),
    radial-gradient(ellipse at 50% 120%, transparent 30%, rgba(8, 10, 9, 0.55) 100%);
}

main#main {
  position: relative;
}

body.rg .mr-footer {
  position: relative;
  z-index: 3;
}

.rg-scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 12vh, 120px);
}

.rg-scene-inner {
  width: 100%;
}

.rg-scene--ids {
  min-height: 200vh;
  align-items: stretch;
}

.rg-scene--ids .rg-scene-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 200vh;
  gap: 12vh;
}

.rg-scene--services {
  min-height: 280vh;
  align-items: flex-start;
}

.rg-scene--services .rg-scene-inner {
  padding-top: 12vh;
  width: 100%;
}

.rg-id {
  margin: 0;
}

.rg-id-label {
  display: block;
  margin-bottom: 12px;
  color: #39E58C;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rg-id-value {
  display: block;
  color: #F7F8F6;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: clamp(40px, 11vw, 128px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.92;
  white-space: nowrap;
}

.rg-id[data-rg-id="uei"] .rg-id-value {
  font-size: clamp(22px, 6.4vw, 88px);
  letter-spacing: -0.03em;
}

.rg-services {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.rg-services li {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 28em;
  padding-block: 8vh;
  border-top: 1px solid #123D2B;
}

.rg-services li:first-child { border-top: 0; }

.rg-services h3::before {
  content: counter(rg-svc, decimal-leading-zero) "  /  ";
  color: #39E58C;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.rg-services { counter-reset: rg-svc; }
.rg-services li { counter-increment: rg-svc; }

.rg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.rg-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  font-size: 15px;
}

body.rg .rg-secondary a {
  color: #39E58C;
}

body.rg .rg-scene--cta {
  min-height: 100vh;
}

body.rg .rg-scene--cta h2 { max-width: 16ch; }

/* Default: fully readable. Motion only when the browser can drive it
   and the visitor has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .rg-vehicle {
      animation: rg-zoom linear both;
      animation-timeline: scroll(root);
      animation-range: 0% 85%;
    }
    .rg-frame {
      animation: rg-hold linear both;
      animation-timeline: scroll(root);
    }
    .rg-frame[data-rg-frame="0"] { animation-name: rg-f0; }
    .rg-frame[data-rg-frame="1"] { animation-name: rg-f1; }
    .rg-frame[data-rg-frame="2"] { animation-name: rg-f2; }
    .rg-frame[data-rg-frame="3"] { animation-name: rg-f3; }
    .rg-copy {
      animation: rg-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    #reveal .rg-copy {
      animation: none;
      opacity: 1;
      transform: none;
    }
    .rg-scan::after {
      animation: rg-scan 9s linear infinite;
    }
  }

  html.rg-fallback .rg-vehicle,
  html.rg-frames .rg-vehicle {
    animation: none;
    transform: scale(var(--rg-s, 0.82)) translate3d(var(--rg-x, 0%), var(--rg-y, 6%), 0);
  }
  html.rg-fallback .rg-frame,
  html.rg-frames .rg-frame {
    animation: none;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  html.rg-fallback .rg-frame.is-on,
  html.rg-frames .rg-frame.is-on { opacity: 1; }
  html.rg-fallback .rg-copy {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  html.rg-fallback .rg-copy.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  html.rg-fallback #reveal .rg-copy {
    opacity: 1;
    transform: none;
  }
  html.rg-fallback .rg-scan::after {
    animation: rg-scan 9s linear infinite;
  }
}

@keyframes rg-zoom {
  0% { transform: scale(0.78) translate3d(0, 8%, 0); }
  45% { transform: scale(1.02) translate3d(0, 1%, 0); }
  100% { transform: scale(1.12) translate3d(-2%, 3%, 0); }
}

@keyframes rg-f0 {
  0%, 14% { opacity: 1; }
  24%, 100% { opacity: 0; }
}
@keyframes rg-f1 {
  0%, 14% { opacity: 0; }
  24%, 36% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes rg-f2 {
  0%, 36% { opacity: 0; }
  46%, 56% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes rg-f3 {
  0%, 56% { opacity: 0; }
  70%, 100% { opacity: 1; }
}
@keyframes rg-hold { 0%, 100% { opacity: 1; } }
@keyframes rg-rise {
  0% { opacity: 0; transform: translate3d(0, 22px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes rg-scan {
  to { transform: translate3d(0, 560%, 0); }
}

@media (max-width: 700px) {
  .rg-vignette {
    background:
      linear-gradient(180deg, rgba(8, 10, 9, 0.88) 0%, rgba(8, 10, 9, 0.55) 38%, rgba(8, 10, 9, 0.2) 100%),
      radial-gradient(ellipse at 50% 120%, transparent 20%, rgba(8, 10, 9, 0.7) 100%);
  }
  .rg-grid { opacity: 0.08; }
  .rg-vehicle { transform: scale(1) translate3d(0, 22%, 0); }
  .rg-scene {
    min-height: auto;
    padding-block: 72px 56px;
  }
  .rg-scene--ids,
  .rg-scene--ids .rg-scene-inner,
  .rg-scene--services {
    min-height: auto;
  }
  .rg-scene--ids .rg-scene-inner { gap: 56px; }
  .rg-scene--services .rg-scene-inner { padding-top: 24px; }
  .rg-services li {
    min-height: 0;
    padding-block: 28px;
  }
  body.rg h1 { font-size: clamp(34px, 11vw, 48px); max-width: 14ch; }
  .rg-id-value { white-space: normal; overflow-wrap: anywhere; }
  .rg-id[data-rg-id="uei"] .rg-id-value { white-space: nowrap; font-size: clamp(18px, 6.8vw, 28px); }
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
      .rg-vehicle { animation-name: rg-zoom-mobile; }
    }
  }
}

@keyframes rg-zoom-mobile {
  0% { transform: scale(0.96) translate3d(0, 18%, 0); }
  100% { transform: scale(1.06) translate3d(0, 24%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rg-stage {
    position: relative;
    height: min(52vh, 420px);
    min-height: 220px;
  }
  .rg-vehicle { transform: none; }
  .rg-frame { opacity: 0; }
  .rg-frame:first-child,
  .rg-frame.is-on { opacity: 1; }
  .rg-copy,
  html.rg-fallback .rg-copy {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .rg-scan::after,
  .rg-vehicle,
  .rg-frame,
  html.rg-fallback .rg-scan::after,
  html.rg-frames .rg-frame {
    animation: none;
    transition: none;
  }
  .rg-scene,
  .rg-scene--ids,
  .rg-scene--ids .rg-scene-inner,
  .rg-scene--services,
  .rg-services li {
    min-height: 0;
  }
  .rg-scene { padding-block: 48px; }
  .rg-services li { padding-block: 20px; }
  .rg-scene--ids .rg-scene-inner { gap: 40px; }
}

/* Keep the federal identifiers together in the announcement hero. */
.rg-hero-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 32px;
}
.rg-hero-ids .rg-id-label { margin-bottom: 8px; }
.rg-hero-ids .rg-id-value,
.rg-hero-ids .rg-id[data-rg-id="uei"] .rg-id-value {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -.03em;
  white-space: nowrap;
}
