/* Code-editor motion scoped to the AtarUp hero. */
#atarup-hero-animation .ah-code-window {
  background: #0b0c0f;
  border-color: #1d2128;
}
#atarup-hero-animation .ah-code-window .ah-bar { border-color: #1d2128; }
#atarup-hero-animation .ah-code-window .ah-title { color: #7b828f; }
#atarup-hero-animation .ah-code-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#atarup-hero-animation .ah-code {
  position: relative;
  margin: 0;
  padding: 11px 10px;
  font: 11px/1.62 var(--fm);
  color: #c2c8d2;
  letter-spacing: 0;
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
  tab-size: 2;
  will-change: transform, opacity;
}
#atarup-hero-animation .ah-row {
  display: block;
  white-space: pre;
  min-height: 1.62em;
  clip-path: inset(0 100% 0 0);
}
#atarup-hero-animation .ah-row.is-visible {
  clip-path: inset(0 calc((1 - var(--line-reveal, 1)) * 100% - var(--line-reveal, 1) * 2px) 0 0);
}
#atarup-hero-animation .ah-row.is-active {
  color: #f2f6fb;
  background: linear-gradient(90deg, rgba(255,122,26,.16), rgba(255,122,26,.045) 55%, transparent);
  box-shadow: inset 2px 0 0 #ff7a1a;
}
#atarup-hero-animation .ah-line-number {
  display: inline-block;
  width: 22px;
  padding-right: 6px;
  color: #596171;
  text-align: right;
  user-select: none;
}
#atarup-hero-animation .ah-row.is-active .ah-line-number { color: #ff8a3a; }
#atarup-hero-animation .ah-keyword { color: #b58cff; }
#atarup-hero-animation .ah-string { color: #9ece6a; }
#atarup-hero-animation .ah-function { color: #82aaff; }
#atarup-hero-animation .ah-number { color: #e6e7e8; }
#atarup-hero-animation .ah-row.is-active .ah-text { text-shadow: 0 0 12px rgba(192,208,244,.22); }
#atarup-hero-animation .ah-caret {
  display: none;
  width: 6px;
  height: 11px;
  vertical-align: -1px;
  margin-left: 1px;
  background: #ff8a3a;
  border-radius: 1px;
  box-shadow: 0 0 7px rgba(255,122,26,.9), 0 0 15px rgba(255,122,26,.35);
  animation: ah-code-blink 1s steps(1) infinite;
}
#atarup-hero-animation .ah-row.is-active .ah-caret { display: inline-block; }
#atarup-hero-animation[data-motion-paused="true"] .ah-caret { animation-play-state: paused; }
@keyframes ah-code-blink { 50% { opacity: 0; } }
@media (max-width: 1180px) {
  #atarup-hero-animation .ah-code { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #atarup-hero-animation .ah-caret { animation: none; }
}
