/* A typed line under the affiliation that cycles through research one-liners. */

/* Both layers share one grid cell; the hidden longest phrase reserves the
   height so wrapping on narrow screens never shifts the links below. */
.hero-typeline {
  display: grid;
  font: 500 13.5px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--accent);
}
.hero-typeline > span { grid-area: 1 / 1; }
.hero-typeline::before {
  content: "› ";
  grid-area: 1 / 1;
  color: var(--text-subtle);
}
.hero-typeline-sizer,
.hero-typeline-live { padding-left: 2ch; }
.hero-typeline-sizer { visibility: hidden; }
.hero-typeline-caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -.15em;
  background: currentColor;
  animation: hero-caret-blink 1s steps(1) infinite;
}
@keyframes hero-caret-blink { 50% { opacity: 0; } }

.hero-typeline-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-typeline { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typeline-caret { animation: none; }
}
