#about {
  position: relative;
}

.about-intro {
  max-width: 700px;
  margin-top: 18px;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.65;
}

.hologram {
  display: grid;
  margin: 28px 0 16px;
  place-items: center;
}

.portrait-stage {
  position: relative;
  width: max-content;
  isolation: isolate;
}

.ascii-portrait {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #fff;
  font-family: "Berkeley Mono", monospace;
  font-size: 6.5px;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: left;
  white-space: pre;
}

.ascii-glyph {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.ascii-portrait.is-dispersing .ascii-glyph {
  transition-duration: 90ms;
  transition-timing-function: linear;
}

.about-stickers {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.holo-sticker,
.personality-token {
  position: absolute;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.holo-sticker {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: center;
}

.holo-sticker.is-dragging,
.personality-token.is-dragging {
  z-index: 8;
  cursor: grabbing;
}

.holo-sticker:focus-visible {
  outline: 1px dashed var(--blue);
  outline-offset: 4px;
}

.personality-token:focus-visible {
  outline: 1px dashed var(--yellow);
  outline-offset: 4px;
}

.holo-sticker > img,
.personality-token > img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 150ms ease;
}

.holo-sticker:hover > img {
  transform: translateY(-2px) scale(1.04);
}

.holo-sticker.is-dragging > img {
  transform: translateY(-2px) scale(1.06);
}

.holo-sticker--oxford { width: 65px; }
.holo-sticker--uva { width: 42px; }
.personality-token--hello { width: 92px; }
.taste-token { width: 42px; }

.taste-token > img {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
}

.taste-token:hover > img,
.taste-token:focus-visible > img {
  transform: translateY(-2px) scale(1.07);
}

.education-popover,
.personality-popover {
  position: absolute;
  z-index: 6;
  width: max-content;
  border: 1px solid #65666a;
  background: #111;
  color: #fff;
  font-family: "Berkeley Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.education-popover {
  top: 50%;
  left: calc(100% + 10px);
  display: grid;
  max-width: 230px;
  gap: 3px;
  padding: 8px 10px;
  color: var(--muted);
  transform: translate(4px, -50%);
}

.education-popover strong {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

.education-popover a {
  color: var(--blue);
  text-underline-offset: 2px;
}

.holo-sticker:hover,
.holo-sticker:focus-within {
  z-index: 7;
}

.holo-sticker:hover .education-popover,
.holo-sticker:focus-within .education-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.personality-popover {
  bottom: calc(100% + 8px);
  left: 50%;
  max-width: 155px;
  padding: 5px 7px;
  border-color: #fff;
  line-height: 1.2;
  transform: translate(-50%, 4px);
}

.personality-token:hover {
  z-index: 5;
}

.personality-token:hover .personality-popover,
.personality-token:focus-visible .personality-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rating-stars {
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.about-stickers > :nth-child(2n) { --drift-delay: -1.35s; }
.about-stickers > :nth-child(3n) { --drift-delay: -2.7s; }
.about-stickers > :nth-child(4n) { --drift-delay: -3.8s; }

.holo-sticker:not(.is-dragging):not(:hover):not(:focus-within) > img,
.personality-token:not(.is-dragging):not(:hover):not(:focus-visible) > img {
  animation: sticker-drift 4.8s ease-in-out infinite;
  animation-delay: var(--drift-delay, 0s);
}

@keyframes sticker-drift {
  0%, 100% { transform: translate3d(-1px, 1px, 0) rotate(-0.2deg); }
  50% { transform: translate3d(1.5px, -2px, 0) rotate(0.3deg); }
}

.about-contact {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 14px;
  text-align: center;
}

.about-links {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.88rem;
}

.about-links > span {
  color: #777;
}

.about-links a {
  text-underline-offset: 3px;
}

.about-links .cv-placeholder {
  border-bottom: 1px dotted #777;
  color: #b0b0b0;
}

.about-mail {
  color: var(--muted);
  font-size: 0.7rem;
}

#experience {
  margin-top: 64px;
}

.experience-header h2 {
  margin: 0;
  padding-bottom: 10px;
}

.experience-stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 30px;
}

.experience-block {
  min-width: 0;
}

.experience-block h3 {
  margin: 0;
  padding-top: 8px;
  border: 0;
}

.research-summary {
  margin-top: 0.5rem;
}

.research-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.journal-logo {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 110px;
  height: auto;
  padding: 4px 6px;
  background: #fff;
}

.research-title-wrap,
.research-project-details {
  min-width: 0;
  line-height: 1.35;
}

.research-title-wrap a,
.research-project-details a {
  font-size: 15px;
}

.research-project {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.research-project-type {
  padding-top: 2px;
  color: var(--blue);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.industry-paragraph {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  text-align: justify;
}

.industry-logo {
  display: inline-block;
  box-sizing: content-box;
  width: auto;
  height: 24px;
  margin-right: 6px;
  padding: 2px 5px;
  background: #111;
  object-fit: contain;
  vertical-align: middle;
}

.industry-logo--ridewithme { height: 18px; }

.industry-logo--ja {
  height: 22px;
  padding-right: 2px;
  padding-left: 0;
  background: transparent;
}

.industry-logo--uva {
  height: 28px;
  padding: 0;
  background: #fff;
}

@media (max-width: 760px) {
  .ascii-portrait {
    font-size: min(6.5px, calc((100vw - 44px) * 0.01664));
  }

  .education-popover {
    max-width: 190px;
  }

  .personality-token--letterboxd-2 .personality-popover {
    right: 0;
    left: auto;
    transform: translateY(4px);
  }

  .personality-token--homegoing .personality-popover {
    right: auto;
    left: 0;
    transform: translateY(4px);
  }

  .personality-token--letterboxd-2:hover .personality-popover,
  .personality-token--letterboxd-2:focus-visible .personality-popover,
  .personality-token--homegoing:hover .personality-popover,
  .personality-token--homegoing:focus-visible .personality-popover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .industry-paragraph {
    text-align: left;
  }

  .research-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .journal-logo {
    width: 130px;
  }

  .research-project {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
