@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-side-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-tag-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-detail-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-line-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-panel-scan {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -80% 0;
  }
}

@keyframes hero-node-pulse {
  0%, 18%, 100% {
    background: var(--navy);
    border-color: #62748b;
    box-shadow: 0 0 0 0 rgba(105,220,197,0);
    transform: translateY(-50%) scale(.82);
  }
  7% {
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: 0 0 0 6px rgba(105,220,197,.12);
    transform: translateY(-50%) scale(1);
  }
}

@keyframes hero-status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(105,220,197,0);
    opacity: .65;
  }
  50% {
    box-shadow: 0 0 0 7px rgba(105,220,197,.1);
    opacity: 1;
  }
}

@keyframes hero-tag-signal {
  0%, 22%, 100% {
    color: var(--mint);
    background: transparent;
    border-color: #4d5c70;
    box-shadow: none;
  }
  8%, 14% {
    color: var(--ink);
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: 0 8px 24px rgba(105,220,197,.18);
  }
}

@keyframes hero-cursor-blink {
  0%, 45% {
    opacity: 1;
  }
  46%, 100% {
    opacity: 0;
  }
}

@keyframes hero-word-gradient {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

@keyframes hero-spark-burst {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.25) rotate(0); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.55) rotate(20deg); }
}

@keyframes hero-electric-trace {
  0% { opacity: 0; transform: scaleX(.04); }
  34% { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes hero-word-arrive {
  from { opacity: 0; filter: blur(5px) brightness(1.9); transform: translateY(.16em) skewX(-6deg); }
  to { opacity: 1; filter: blur(0) brightness(1); transform: translateY(0) skewX(0); }
}

.hero-line {
  display: block;
}

.hero-rotator {
  position: relative;
  display: inline-block;
  min-width: 4.75em;
  isolation: isolate;
}

.hero-word {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg,#69dcc5 0%,#d4fff6 27%,#56a9ff 52%,#69dcc5 78%,#d4fff6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(105,220,197,.2));
  animation: hero-word-gradient 4.2s linear infinite;
  transition: opacity .24s ease,transform .24s ease,filter .24s ease;
}

.hero-word.is-changing {
  opacity: 0;
  transform: translateY(-.16em) skewX(7deg) scale(.96);
  filter: blur(5px) brightness(2);
}

.hero-word.is-arriving {
  animation: hero-word-gradient 4.2s linear infinite,hero-word-arrive .44s cubic-bezier(.22,.8,.22,1) both;
}

.hero-rotator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  background: #d4fff6;
  box-shadow: -1.28em -.5em 0 #69dcc5,1.35em -.36em 0 #56a9ff,-.92em .68em 0 #d4fff6,1.12em .7em 0 #69dcc5,0 -1em 0 #fff;
  pointer-events: none;
}

.hero-rotator::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: .04em;
  height: 2px;
  opacity: 0;
  transform-origin: left;
  background: linear-gradient(90deg,transparent,#69dcc5,#d4fff6,#56a9ff,transparent);
  filter: drop-shadow(0 0 5px #69dcc5);
  pointer-events: none;
}

.hero-rotator.is-switching::before {
  animation: hero-spark-burst .72s ease-out both;
}

.hero-rotator.is-switching::after {
  animation: hero-electric-trace .7s cubic-bezier(.22,.8,.22,1) both;
}

.hero-copy > .eyebrow,
.hero-line,
.hero-proof,
.hero-copy > .button,
.hero-side,
.hero-side .label,
.hero-side li,
.keywords span {
  opacity: 0;
}

.hero-copy > .eyebrow {
  animation: hero-rise .58s cubic-bezier(.22,.8,.22,1) .04s both;
}

.hero-line-one {
  animation: hero-rise .7s cubic-bezier(.22,.8,.22,1) .14s both;
}

.hero-line-two {
  animation: hero-rise .7s cubic-bezier(.22,.8,.22,1) .25s both;
}

.hero-type-line {
  display: block;
  color: #fff;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
  min-height: 1.5em;
  margin-top: 18px;
  max-width: 650px;
}

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  background: var(--mint);
  vertical-align: -.12em;
  animation: hero-cursor-blink .76s steps(1,end) infinite;
}

.hero-proof {
  animation: hero-rise .68s cubic-bezier(.22,.8,.22,1) 1.9s both;
}

.hero-copy > .button {
  animation: hero-rise .65s cubic-bezier(.22,.8,.22,1) 2.04s both;
}

.hero-side {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121,145,173,.32);
  border-radius: 8px;
  padding: 28px 28px 26px;
  background: linear-gradient(145deg,rgba(105,220,197,.08),rgba(255,255,255,.025) 48%,rgba(21,91,174,.09));
  box-shadow: 0 26px 70px rgba(2,11,24,.22),inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .25s ease,box-shadow .25s ease;
  animation: hero-side-in .78s cubic-bezier(.22,.8,.22,1) .34s both;
}

.hero-side:hover {
  border-color: rgba(105,220,197,.55);
  box-shadow: 0 30px 80px rgba(2,11,24,.28),inset 0 1px 0 rgba(255,255,255,.05);
}

.hero-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,transparent 0%,var(--mint) 38%,#a5f5e2 50%,var(--mint) 62%,transparent 100%);
  background-size: 220% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-line-grow .65s cubic-bezier(.22,.8,.22,1) .52s both,hero-panel-scan 5.8s linear 1.25s infinite;
}

.hero-side .label {
  display: flex;
  align-items: center;
  gap: 11px;
  animation: hero-detail-in .5s cubic-bezier(.22,.8,.22,1) .66s both;
}

.hero-side .label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: hero-status-pulse 2.4s ease-in-out 1.2s infinite;
}

.hero-side ul {
  position: relative;
  list-style: none;
  counter-reset: strategy;
  padding-left: 0;
  margin-top: 20px;
}

.hero-side ul::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg,rgba(105,220,197,.65),rgba(77,92,112,.35));
}

.hero-side li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-left: 30px;
  counter-increment: strategy;
  animation: hero-detail-in .48s cubic-bezier(.22,.8,.22,1) both;
}

.hero-side li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid #62748b;
  border-radius: 50%;
  background: var(--navy);
  transform: translateY(-50%) scale(.82);
  animation: hero-node-pulse 5.6s ease-in-out infinite;
}

.hero-side li::after {
  content: "0" counter(strategy);
  margin-left: auto;
  padding-left: 16px;
  color: #7890ab;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .08em;
}

.hero-side li:nth-child(1) {
  animation-delay: .78s;
}

.hero-side li:nth-child(1)::before {
  animation-delay: 1.45s;
}

.hero-side li:nth-child(2) {
  animation-delay: .89s;
}

.hero-side li:nth-child(2)::before {
  animation-delay: 2.65s;
}

.hero-side li:nth-child(3) {
  animation-delay: 1s;
}

.hero-side li:nth-child(3)::before {
  animation-delay: 3.85s;
}

.hero-side li:nth-child(4) {
  animation-delay: 1.11s;
}

.hero-side li:nth-child(4)::before {
  animation-delay: 5.05s;
}

.keywords span {
  display: inline-block;
  animation: hero-tag-in .48s cubic-bezier(.22,.8,.22,1) both,hero-tag-signal 6s ease-in-out infinite;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.keywords a:nth-child(1) span {
  animation-delay: 1.22s,1.8s;
}

.keywords a:nth-child(2) span {
  animation-delay: 1.31s,3.8s;
}

.keywords a:nth-child(3) span {
  animation-delay: 1.4s,5.8s;
}

.keywords a:hover span,
.keywords a:focus-visible span {
  transform: translateY(-3px);
  border-color: var(--mint);
  background: rgba(105,220,197,.08);
}

.hero {
  align-items: center;
}

#work,
#library,
#about {
  padding-top: 104px;
}

@media (min-width: 951px) {
  .hero {
    padding-block: 64px 72px;
  }

  .hero-side {
    margin-top: 36px;
    margin-bottom: 0;
  }
}

@media (min-width: 651px) {
  .about {
    align-items: center;
  }
}

@media (max-width: 950px) {
  .hero {
    align-items: stretch;
  }

  .hero-side ul {
    display: block;
  }

  .hero-side ul li {
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .hero-side {
    padding: 24px 20px 22px;
  }

  #work,
  #library,
  #about {
    padding-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > .eyebrow,
  .hero-line,
  .hero-proof,
  .hero-copy > .button,
  .hero-side,
  .hero-side .label,
  .hero-side li,
  .keywords span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-cursor {
    display: none;
  }

  .hero-rotator {
    min-width: 0;
  }

  .hero-word {
    animation: none !important;
    transition: none !important;
    filter: none;
  }

  .hero-rotator::before,
  .hero-rotator::after {
    display: none;
  }

  .hero-side::before {
    animation: none;
    transform: scaleX(1);
  }

  .hero-side .label::before,
  .hero-side li::before {
    animation: none;
  }
}
