:root {
  --blue: #0000FF;
  --green: #7FFF00;
  --bar: #000;
  --bar-h: 2rem;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bar);
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

body {
  display: grid;
  grid-template-rows: var(--bar-h) 1fr var(--bar-h);
  overflow: hidden;
}

/* ---- marquee bars ---- */

.bar {
  background: var(--bar);
  color: var(--green);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .1em;
  white-space: nowrap;
}

.track {
  display: flex;
  flex: none;
  animation: marquee 30s linear infinite;
}

/* header scrolls the other way so the two bars don't read as one belt */
.track--rtl { animation-direction: reverse; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- stage ---- */

main {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  display: grid;
  place-items: center;
}

#src {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
}

#name {
  font-family: "Silkscreen", "IBM Plex Mono", monospace;
  font-weight: 400;
  color: var(--green);
  font-size: clamp(1.6rem, 6.5vw, 4rem);
  letter-spacing: .12em;
  margin: 0;
}

.aka {
  font-size: clamp(.7rem, 1.6vw, .95rem);
  margin: .6rem 0 0;
}

.aka a { color: var(--green); }

.reel {
  margin: clamp(3rem, 12vh, 8rem) 0 0;
  position: relative;
  display: inline-block;
}

#showreel {
  color: var(--green);
  text-decoration: none;
  font-size: clamp(.7rem, 1.6vw, .95rem);
  letter-spacing: .1em;
  /* holds the box at the longer label so the hover swap doesn't reflow */
  display: inline-block;
  min-width: 17ch;
}

#showreel:hover { text-decoration: underline; }

.click-this {
  position: absolute;
  top: 100%;
  right: -.5em;
  font-size: .58rem;
  font-style: italic;
  color: var(--green);
  white-space: nowrap;
  animation: breathe 1.8s ease-in-out infinite alternate;
  transition: opacity .25s ease;
}

.reel.hovered .click-this { opacity: 0; }

@keyframes breathe {
  from { transform: rotate(-12deg) scale(1); }
  to   { transform: rotate(-12deg) scale(1.28); }
}

/* ---- intro fade ---- */

.fade { animation: fadeIn .9s ease both; }
header.fade { animation-delay: .5s; }
.aka         { animation-delay: .9s; }
.reel        { animation-delay: 1.2s; }
footer.fade  { animation-delay: 1.5s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .track, .click-this { animation: none; }
  .fade { animation-duration: .01ms; animation-delay: 0s; }
}
